Skip to content

Commit

Permalink
chore: add mocha config
Browse files Browse the repository at this point in the history
  • Loading branch information
omichelsen committed Dec 10, 2023
1 parent c500bde commit 348b638
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"require": "ts-node/register",
"extension": ["ts"],
"spec": "test/**/*.ts",
"watch-files": ["src/**/*.ts", "test/**/*.ts"]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"build:esm": "tsc --module esnext --target es2017 --outDir lib/esm",
"build:umd": "rollup lib/esm/index.js --format umd --name compareVersions --sourcemap -o lib/umd/index.js",
"prepublishOnly": "npm run build",
"test": "c8 --reporter=lcov mocha -r ts-node/register test/**/*.ts"
"test": "c8 --reporter=lcov mocha"
},
"main": "./lib/umd/index.js",
"module": "./lib/esm/index.js",
Expand Down

0 comments on commit 348b638

Please sign in to comment.