diff --git a/.mocharc.yaml b/.mocharc.yaml new file mode 100644 index 00000000..bda18993 --- /dev/null +++ b/.mocharc.yaml @@ -0,0 +1,3 @@ +recursive: true +require: ['@babel/register','source-map-support', 'test/mocha/setup.js'] +# spec: 'test/mocha/**/*.{js,jsx}' diff --git a/package.json b/package.json index 3c152f37..523026c8 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "lint-fix": "eslint --cache --ext \".js,.jsx\" src test --fix", "test": "run-s just-test-in-node e2e-cypress lint-errors", "test-in-node": "run-s lint-errors just-test-in-node", - "just-test-in-node": "mocha --require test/mocha/setup.js --recursive --require @babel/register --require source-map-support \"test/mocha/**/*.{js,jsx}\"", + "just-test-in-node": "mocha \"test/mocha/**/*.{js,jsx}\"", "test-e2e-cypress": "cypress run", "test-e2e-selenium": "sleep 3 && nightwatch test/e2e-selenium/scenarios/ --config test/e2e-selenium/nightwatch.json", "e2e-initial-render": "nightwatch test/e2e-selenium/scenarios/ --config test/e2e-selenium/nightwatch.json --group initial-render",