node/test/js-native-api
Antoine du Hamel e50cbc1abd
test: enforce better never-settling-promise detection
Tests should be explicit regarding whether a promise is expected to
settle, and the test should fail when the behavior does not meet
expectations.

PR-URL: https://github.com/nodejs/node/pull/60976
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Erick Wendel <erick.workspace@gmail.com>
2025-12-10 23:55:36 +00:00
..
2_function_arguments test: avoid copying test source files 2023-09-10 06:11:36 +00:00
3_callbacks test: ensure assertions are reachable in more folders 2025-10-29 15:16:59 +00:00
4_object_factory test: avoid copying test source files 2023-09-10 06:11:36 +00:00
5_function_factory test: avoid copying test source files 2023-09-10 06:11:36 +00:00
6_object_wrap node-api: add nested object wrap and napi_ref test 2025-04-25 22:22:30 +00:00
7_factory_wrap test: merge ongc and gcutil into gc.js 2024-08-29 08:49:52 +01:00
8_passing_wrapped test: merge ongc and gcutil into gc.js 2024-08-29 08:49:52 +01:00
test_array test: avoid copying test source files 2023-09-10 06:11:36 +00:00
test_bigint test: avoid copying test source files 2023-09-10 06:11:36 +00:00
test_cannot_run_js node-api: define version 10 2024-12-31 16:29:50 +00:00
test_constructor test: avoid copying test source files 2023-09-10 06:11:36 +00:00
test_conversions test: avoid copying test source files 2023-09-10 06:11:36 +00:00
test_dataview node-api: support SharedArrayBuffer in napi_create_dataview 2025-11-13 21:45:17 +00:00
test_date test: avoid copying test source files 2023-09-10 06:11:36 +00:00
test_error test: avoid copying test source files 2023-09-10 06:11:36 +00:00
test_exception test: avoid copying test source files 2023-09-10 06:11:36 +00:00
test_finalizer test: merge ongc and gcutil into gc.js 2024-08-29 08:49:52 +01:00
test_function test: fix typos 2024-09-28 13:58:55 +00:00
test_general test: add lint rule to forbid use of assert.ok(/regex/.test(…)) 2025-11-25 21:25:47 +01:00
test_handle_scope test: avoid copying test source files 2023-09-10 06:11:36 +00:00
test_instance_data test: avoid copying test source files 2023-09-10 06:11:36 +00:00
test_new_target test: avoid copying test source files 2023-09-10 06:11:36 +00:00
test_number test: avoid copying test source files 2023-09-10 06:11:36 +00:00
test_object node-api: add napi_create_object_with_properties 2025-10-30 14:10:44 +00:00
test_promise test: enforce better never-settling-promise detection 2025-12-10 23:55:36 +00:00
test_properties test: avoid copying test source files 2023-09-10 06:11:36 +00:00
test_reference test: fix typos 2024-09-28 13:58:55 +00:00
test_reference_double_free test: avoid copying test source files 2023-09-10 06:11:36 +00:00
test_sharedarraybuffer node-api: added SharedArrayBuffer api 2025-09-16 09:57:06 +00:00
test_string node-api: define version 10 2024-12-31 16:29:50 +00:00
test_symbol test: avoid copying test source files 2023-09-10 06:11:36 +00:00
test_typedarray node-api: add support for Float16Array 2025-11-18 07:09:43 +00:00
.gitignore Revert "test: ignore the copied entry_point.c" 2023-09-10 06:11:37 +00:00
common-inl.h node-api: return napi_exception_pending on proxy handlers 2023-10-23 18:17:49 -04:00
common.h node-api: rename nogc to basic 2024-07-26 09:25:02 -07:00
entry_point.h test: avoid copying test source files 2023-09-10 06:11:36 +00:00
testcfg.py