Browse Source

config(mocha): create .mocharc config file

bubble
Timothy Lai 4 years ago
parent
commit
e13bc29aad
2 changed files with 4 additions and 1 deletions
  1. +3
    -0
      .mocharc.yaml
  2. +1
    -1
      package.json

+ 3
- 0
.mocharc.yaml View File

@@ -0,0 +1,3 @@
recursive: true
require: ['@babel/register','source-map-support', 'test/mocha/setup.js']
# spec: 'test/mocha/**/*.{js,jsx}'

+ 1
- 1
package.json View File

@@ -31,7 +31,7 @@
"lint-fix": "eslint --cache --ext \".js,.jsx\" src test --fix", "lint-fix": "eslint --cache --ext \".js,.jsx\" src test --fix",
"test": "run-s just-test-in-node e2e-cypress lint-errors", "test": "run-s just-test-in-node e2e-cypress lint-errors",
"test-in-node": "run-s lint-errors just-test-in-node", "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-cypress": "cypress run",
"test-e2e-selenium": "sleep 3 && nightwatch test/e2e-selenium/scenarios/ --config test/e2e-selenium/nightwatch.json", "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", "e2e-initial-render": "nightwatch test/e2e-selenium/scenarios/ --config test/e2e-selenium/nightwatch.json --group initial-render",


Loading…
Cancel
Save