node/test/js-native-api
Anna Henningsen 4b289d047d
test: expand linting rules around assert w literal messages
Expands the existing restrictions around not using literal messages
to the `not` variants of `strictEqual` and `deepStrictEqual`, and
forbids `assert()` where the second argument is a non-string literal,
which almost always is a mis-typed `assert.strictEquals()`.

PR-URL: https://github.com/nodejs/node/pull/59147
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
2025-07-23 16:28:06 +00:00
..
2_function_arguments test: avoid copying test source files 2023-09-10 06:11:36 +00:00
3_callbacks test: avoid copying test source files 2023-09-10 06:11:36 +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 test: avoid copying test source files 2023-09-10 06:11:36 +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 node-api: define version 10 2024-12-31 16:29:50 +00: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 test: expand linting rules around assert w literal messages 2025-07-23 16:28:06 +00:00
test_promise test: avoid copying test source files 2023-09-10 06:11: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_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 test: avoid copying test source files 2023-09-10 06:11:36 +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 test: partition N-API tests 2018-12-04 13:58:17 -08:00