Skip to content

Commit 348b638

Browse files
committed
chore: add mocha config
1 parent c500bde commit 348b638

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.mocharc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"require": "ts-node/register",
3+
"extension": ["ts"],
4+
"spec": "test/**/*.ts",
5+
"watch-files": ["src/**/*.ts", "test/**/*.ts"]
6+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"build:esm": "tsc --module esnext --target es2017 --outDir lib/esm",
2525
"build:umd": "rollup lib/esm/index.js --format umd --name compareVersions --sourcemap -o lib/umd/index.js",
2626
"prepublishOnly": "npm run build",
27-
"test": "c8 --reporter=lcov mocha -r ts-node/register test/**/*.ts"
27+
"test": "c8 --reporter=lcov mocha"
2828
},
2929
"main": "./lib/umd/index.js",
3030
"module": "./lib/esm/index.js",

0 commit comments

Comments
 (0)