diff --git a/package.json b/package.json index 3082c3322c..e196159744 100644 --- a/package.json +++ b/package.json @@ -17,12 +17,12 @@ "scripts": { "build": "babel --quiet --out-dir lib src", "prebuild": "rimraf lib", - "watch": "npm run mocha -- --watch \"tests/{src,config}\"", + "watch": "npm run mocha -- --watch tests/src", "pretest": "linklocal", "posttest": "eslint .", "mocha": "cross-env BABEL_ENV=test NODE_PATH=./src nyc -s mocha -R dot --recursive -t 5s", - "test": "npm run mocha -- \"tests/config\"", - "test-compiled": "npm run prepublish && NODE_PATH=./lib mocha --compilers js:babel-register --recursive \"tests/{src,config}\"", + "test": "npm run mocha tests/src", + "test-compiled": "npm run prepublish && NODE_PATH=./lib mocha --compilers js:babel-register --recursive tests/src", "test-all": "npm test && for resolver in ./resolvers/*; do cd $resolver && npm test && cd ../..; done", "prepublish": "npm run build", "coveralls": "nyc report --reporter lcovonly && cat ./coverage/lcov.info | coveralls" diff --git a/tests/config/typescript.js b/tests/src/config/typescript.js similarity index 84% rename from tests/config/typescript.js rename to tests/src/config/typescript.js index ea94b92798..d5e3ec8507 100644 --- a/tests/config/typescript.js +++ b/tests/src/config/typescript.js @@ -1,7 +1,7 @@ import path from 'path' import { expect } from 'chai' -const config = require(path.join(__dirname, '..', '..', 'config', 'typescript')) +const config = require(path.join(__dirname, '..', '..', '..', 'config', 'typescript')) describe('config typescript', () => { // https://github.com/benmosher/eslint-plugin-import/issues/1525