refactor(test): add command to run an unique test and support Mocha Explorer extension

This commit is contained in:
Baptiste Augrain
2021-08-31 13:04:40 +02:00
parent 7068954334
commit 50e8727111
4 changed files with 18 additions and 2 deletions
+11
View File
@@ -0,0 +1,11 @@
require:
- source-map-support/register
spec:
- out/**/*.test.js
- addons/**/out/*.test.js
watch-files:
- out/**/*.js
- addons/**/out/*.js
reporter: spec
color: true
check-leaks: true
+4 -1
View File
@@ -1,4 +1,7 @@
{
"typescript.preferences.importModuleSpecifier": "non-relative",
"typescript.preferences.quoteStyle": "single"
"typescript.preferences.quoteStyle": "single",
"mochaExplorer.env": {
"NODE_PATH": "./out"
}
}
+2
View File
@@ -23,6 +23,7 @@
"test-api-webkit": "node ./bin/test_api.js --browser=webkit --timeout=20000",
"test-unit": "node ./bin/test.js",
"test-unit-coverage": "node ./bin/test.js --coverage",
"test:dev": "NODE_PATH='./out' mocha",
"build": "tsc -b ./tsconfig.all.json",
"prepare": "npm run setup",
"setup": "npm run build",
@@ -61,6 +62,7 @@
"nyc": "^15.1.0",
"playwright": "^1.11.0",
"source-map-loader": "^2.0.1",
"source-map-support": "^0.5.19",
"ts-loader": "^9.1.2",
"typescript": "^4.2.4",
"utf8": "^3.0.0",
+1 -1
View File
@@ -3909,7 +3909,7 @@ source-map-loader@^2.0.1:
iconv-lite "^0.6.2"
source-map-js "^0.6.2"
source-map-support@~0.5.19:
source-map-support@^0.5.19, source-map-support@~0.5.19:
version "0.5.19"
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61"
integrity sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==