Skip to content

Commit 05f66ee

Browse files
authored
prevent npm-tests from silently failing by adding cli-flag --unhandled-rejections=strict to npm tests. (sql-js#472)
1 parent 96080f0 commit 05f66ee

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
"test": "npm run lint && npm run test-asm && npm run test-asm-debug && npm run test-wasm && npm run test-wasm-debug && npm run test-asm-memory-growth",
2626
"lint": "eslint .",
2727
"prettify": "eslint . --fix",
28-
"test-asm": "node test/all.js asm",
29-
"test-asm-debug": "node test/all.js asm-debug",
30-
"test-asm-memory-growth": "node test/all.js asm-memory-growth",
31-
"test-wasm": "node test/all.js wasm",
32-
"test-wasm-debug": "node test/all.js wasm-debug",
28+
"test-asm": "node --unhandled-rejections=strict test/all.js asm",
29+
"test-asm-debug": "node --unhandled-rejections=strict test/all.js asm-debug",
30+
"test-asm-memory-growth": "node --unhandled-rejections=strict test/all.js asm-memory-growth",
31+
"test-wasm": "node --unhandled-rejections=strict test/all.js wasm",
32+
"test-wasm-debug": "node --unhandled-rejections=strict test/all.js wasm-debug",
3333
"doc": "jsdoc -c .jsdoc.config.json"
3434
},
3535
"homepage": "http://github.com/sql-js/sql.js",

0 commit comments

Comments
 (0)