瀏覽代碼

config(mocha): create .mocharc config file

bubble
Timothy Lai 4 年之前
父節點
當前提交
e13bc29aad
共有 2 個檔案被更改,包括 4 行新增1 行删除
  1. +3
    -0
      .mocharc.yaml
  2. +1
    -1
      package.json

+ 3
- 0
.mocharc.yaml 查看文件

@@ -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 查看文件

@@ -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",


Loading…
取消
儲存