Skip to content

Commit b0569b8

Browse files
committed
smoketests: add --unhandled-rejections=throw to node test programs
1 parent f253487 commit b0569b8

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

smoketests/packages/node-js-cjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "index.cjs",
66
"type": "commonjs",
77
"scripts": {
8-
"start": "node index.cjs"
8+
"start": "node --unhandled-rejections=throw index.cjs"
99
},
1010
"author": "Backtrace <team@backtrace.io>",
1111
"license": "MIT",

smoketests/packages/node-js-esm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "index.mjs",
66
"type": "module",
77
"scripts": {
8-
"start": "node index.mjs"
8+
"start": "node --unhandled-rejections=throw index.mjs"
99
},
1010
"author": "Backtrace <team@backtrace.io>",
1111
"license": "MIT",

smoketests/packages/node-ts-cjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "lib/index.js",
66
"types": "lib/index.d.ts",
77
"scripts": {
8-
"start": "node lib/index.js",
8+
"start": "node --unhandled-rejections=throw lib/index.js",
99
"clean": "rimraf lib",
1010
"build": "tsc",
1111
"watch": "npm run build -- --watch"

smoketests/packages/node-ts-esm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"types": "lib/index.d.ts",
77
"type": "module",
88
"scripts": {
9-
"start": "node lib/index.js",
9+
"start": "node --unhandled-rejections=throw lib/index.js",
1010
"clean": "rimraf lib",
1111
"build": "tsc",
1212
"watch": "npm run build -- --watch"

0 commit comments

Comments
 (0)