0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-30 07:27:22 +01:00
nodejs/test/es-module
Michaël Zasso df08779e0d
test: make crashOnUnhandleRejection opt-out
This commit removes `common.crashOnUnhandledRejection()` and adds
`common.disableCrashOnUnhandledRejection()`.

To reduce the risk of mistakes and make writing tests that involve
promises simpler, always install the unhandledRejection hook in tests
and provide a way to disable it for the rare cases where it's needed.

PR-URL: https://github.com/nodejs/node/pull/21849
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
2018-07-19 08:47:28 +02:00
..
es-module.status
test-esm-basic-imports.mjs test: move ESM fixtures to fixtures dir 2018-03-21 20:08:30 +01:00
test-esm-cjs-main.js module: experimental modules runMain separation 2018-06-21 12:54:09 +02:00
test-esm-cyclic-dynamic-import.mjs
test-esm-double-encoding.mjs test: move ESM fixtures to fixtures dir 2018-03-21 20:08:30 +01:00
test-esm-dynamic-import.js test: make crashOnUnhandleRejection opt-out 2018-07-19 08:47:28 +02:00
test-esm-encoded-path-native.js
test-esm-encoded-path.mjs test: move ESM fixtures to fixtures dir 2018-03-21 20:08:30 +01:00
test-esm-error-cache.js test: make crashOnUnhandleRejection opt-out 2018-07-19 08:47:28 +02:00
test-esm-example-loader.js test: move ESM fixtures to fixtures dir 2018-03-21 20:08:30 +01:00
test-esm-forbidden-globals.mjs test: lint fixes for ESLint update 2018-06-24 12:43:42 -04:00
test-esm-import-meta.mjs
test-esm-json.mjs test: move ESM fixtures to fixtures dir 2018-03-21 20:08:30 +01:00
test-esm-live-binding.mjs esm: provide named exports for builtin libs 2018-05-11 12:06:18 -05:00
test-esm-loader-dependency.mjs test: move ESM fixtures to fixtures dir 2018-03-21 20:08:30 +01:00
test-esm-loader-invalid-format.mjs test: fix ESM test 2018-06-30 14:13:32 +02:00
test-esm-loader-invalid-url.mjs esm: loader hook URL validation and error messages 2018-06-30 02:07:51 +02:00
test-esm-loader-missing-dynamic-instantiate-hook.mjs test: make crashOnUnhandleRejection opt-out 2018-07-19 08:47:28 +02:00
test-esm-loader-modulemap.js lib: rename js source to lower snake_case 2018-03-28 08:09:16 +02:00
test-esm-loader-search.js lib: rename js source to lower snake_case 2018-03-28 08:09:16 +02:00
test-esm-main-lookup.mjs test: move ESM fixtures to fixtures dir 2018-03-21 20:08:30 +01:00
test-esm-named-exports.mjs test: move ESM fixtures to fixtures dir 2018-03-21 20:08:30 +01:00
test-esm-namespace.mjs esm: provide named exports for builtin libs 2018-05-11 12:06:18 -05:00
test-esm-preserve-symlinks-main.js module: add --preserve-symlinks-main 2018-05-13 00:28:16 +03:00
test-esm-preserve-symlinks-not-found-plain.mjs
test-esm-preserve-symlinks-not-found.mjs
test-esm-preserve-symlinks.js test: move ESM fixtures to fixtures dir 2018-03-21 20:08:30 +01:00
test-esm-require-cache.mjs
test-esm-resolve-hook.mjs test: move ESM fixtures to fixtures dir 2018-03-21 20:08:30 +01:00
test-esm-shared-loader-dep.mjs test: move ESM fixtures to fixtures dir 2018-03-21 20:08:30 +01:00
test-esm-shebang.mjs test: move ESM fixtures to fixtures dir 2018-03-21 20:08:30 +01:00
test-esm-snapshot.mjs test: move ESM fixtures to fixtures dir 2018-03-21 20:08:30 +01:00
test-esm-symlink-main.js module: skip preserveSymlinks for main 2018-04-01 17:32:26 +02:00
test-esm-symlink.js
test-esm-throw-undefined.mjs test: make crashOnUnhandleRejection opt-out 2018-07-19 08:47:28 +02:00
testcfg.py