Skip to content

Commit 8b32e06

Browse files
authored
test(package.json): Fix glob pattern in mocha test script
The test script in the package.json should have the glob pattern wrapped in single quotes like mentioned here: https://mochajs.org/#the-test-directory "You should always quote your globs in npm scripts. If you use double quotes, it's the shell on UNIX that will expand the glob. On the other hand, if you use single quotes, the node-glob module will handle its expansion." If not, in some environments it will not take the files in the root directory into accounts.
1 parent 9d8ea8d commit 8b32e06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"watch": "shx rm -rf lib/ && babel --watch -d lib/ src/",
4646
"lint": "standard --fix",
4747
"coverage": "istanbul cover node_modules/mocha/bin/_mocha -- --opts mocha.opts",
48-
"test": "TS_NODE_PROJECT='tsconfig.test.json' mocha --require ts-node/register test/**/*.test.ts",
48+
"test": "TS_NODE_PROJECT='tsconfig.test.json' mocha --require ts-node/register 'test/**/*.test.ts'",
4949
"testee": "testee test/index.html --browsers firefox",
5050
"start": "npm run compile && node example/app",
5151
"docs:serve": "vuepress dev docs",

0 commit comments

Comments
 (0)