Skip to content

Commit 1c68e67

Browse files
committed
test: fix test:watch script
1 parent 66767ac commit 1c68e67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"build:types": "tsc --emitDeclarationOnly",
1818
"build:js": "babel src --out-dir es --extensions \".ts\" --source-maps inline && cross-env BABEL_ENV=es5 babel src --out-dir . --extensions \".ts\"",
1919
"test": "cross-env NODE_ENV=test BABEL_ENV=es5 mocha $npm_package_config_mocha && cross-env NODE_ENV=test BABEL_ENV=coverage nyc --reporter=lcov --reporter=text mocha $npm_package_config_mocha",
20-
"test:watch": "cross-env NODE_ENV=test BABEL_ENV=test mocha --watch $npm_package_config_mocha",
20+
"test:watch": "cross-env NODE_ENV=test BABEL_ENV=test mocha $npm_package_config_mocha --watch --watch-extensions ts",
2121
"test:debug": "cross-env NODE_ENV=test BABEL_ENV=test mocha --inspect-brk $npm_package_config_mocha",
2222
"codecov": "nyc report --reporter=text-lcov > coverage.lcov; codecov",
2323
"prepublishOnly": "npm run clean && npm run prettier:check && npm run lint && npm test && npm run build",
@@ -26,7 +26,7 @@
2626
},
2727
"config": {
2828
"lint": "--cache --ext .js,.ts src test",
29-
"mocha": "-r test/configure.js 'src/**/*.spec.ts'",
29+
"mocha": "test/configure.js 'src/**/*.spec.ts'",
3030
"commitizen": {
3131
"path": "cz-conventional-changelog"
3232
}

0 commit comments

Comments
 (0)