diff --git a/.eslintignore b/.eslintignore index 4197b94e5..ffa595043 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1 +1,2 @@ -**/node_modules/** \ No newline at end of file +**/node_modules/** +!.mocharc.js \ No newline at end of file diff --git a/.mocharc.js b/.mocharc.js new file mode 100644 index 000000000..61504b775 --- /dev/null +++ b/.mocharc.js @@ -0,0 +1,6 @@ +const path = require('path'); + +module.exports = { + spec: path.join(__dirname, 'packages/**/test/**/**/**/*.spec.js'), + timeout: 30000 +}; \ No newline at end of file diff --git a/package.json b/package.json index 1865c6758..e02334ad5 100644 --- a/package.json +++ b/package.json @@ -20,8 +20,8 @@ "build": "yarn clean && node . build", "serve": "yarn build && cd ./public && ws", "develop": "yarn clean && node . develop", - "test": "export BROWSERSLIST_IGNORE_OLD_DATA=true && yarn clean && nyc mocha ./packages/**/test/**/**/*.spec.js --timeout 30000", - "test:tdd": "export BROWSERSLIST_IGNORE_OLD_DATA=true && yarn clean && mocha --watch ./packages/**/test/**/**/*.spec.js --timeout 15000" + "test": "export BROWSERSLIST_IGNORE_OLD_DATA=true && yarn clean && nyc mocha", + "test:tdd": "export BROWSERSLIST_IGNORE_OLD_DATA=true && yarn clean && mocha --watch" }, "devDependencies": { "chai": "^4.2.0", diff --git a/packages/cli/test/cases/build.plugins-error-type/build.plugins-error-type.spec.js b/packages/cli/test/cases/build.plugins-error-type/build.plugins-error-type.spec.js index 196b9753d..9db2b12ea 100644 --- a/packages/cli/test/cases/build.plugins-error-type/build.plugins-error-type.spec.js +++ b/packages/cli/test/cases/build.plugins-error-type/build.plugins-error-type.spec.js @@ -25,7 +25,7 @@ const expect = require('chai').expect; const TestBed = require('../../../../../test/test-bed'); -describe('Build Greenwood With: ', function() { +describe.only('Build Greenwood With: ', function() { let setup; before(async function() {