Skip to content

Commit 4d1a487

Browse files
improve mocha: remove redundant spec pattern from config
The spec pattern in .mocharc.json is redundant since it's already specified in the npm script command line arguments. Co-authored-by: llm-git <llm-git@ttll.de> Issue: BTC-3047
1 parent 1bb0ac1 commit 4d1a487

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

packages/wasm-utxo/.mocharc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"extensions": ["ts", "tsx", "js", "jsx"],
3-
"spec": ["test/**/*.ts"],
43
"ignore": ["test/benchmark/**"],
54
"node-option": ["import=tsx/esm", "experimental-wasm-modules"]
65
}

packages/wasm-utxo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
],
4545
"scripts": {
4646
"test": "npm run test:mocha && npm run test:wasm-pack && npm run test:imports",
47-
"test:mocha": "mocha --recursive test",
47+
"test:mocha": "mocha --recursive 'test/**/*.ts'",
4848
"test:benchmark": "mocha test/benchmark/signing.ts --timeout 600000",
4949
"test:wasm-pack": "npm run test:wasm-pack-node && npm run test:wasm-pack-chrome",
5050
"test:wasm-pack-node": "./scripts/wasm-pack-test.sh --node",

0 commit comments

Comments
 (0)