node/test
Joyee Cheung 2dfaee4bc8 module: fix the leak in SourceTextModule and ContextifySript
Replace the persistent handles to v8::Module and
v8::UnboundScript with an internal reference that V8's GC is
aware of to fix the leaks.

PR-URL: https://github.com/nodejs/node/pull/48510
Refs: https://github.com/nodejs/node/issues/44211
Refs: https://github.com/nodejs/node/issues/42080
Refs: https://github.com/nodejs/node/issues/47096
Refs: https://github.com/nodejs/node/issues/43205
Refs: https://github.com/nodejs/node/issues/38695
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
2023-09-14 15:42:26 +00:00
..
abort
addons test: use tmpdir.resolve() 2023-08-21 16:41:53 +00:00
async-hooks test: use tmpdir.resolve() 2023-08-21 16:41:53 +00:00
benchmark
cctest test: fix compiler warning in NodeCryptoEnv 2023-08-24 16:25:09 +00:00
common test: use spawnSyncAndExitWithoutError in test/common/sea.js 2023-09-11 16:39:36 +00:00
doctool doc: rename possibly confusing variable and CSS class 2023-09-08 17:03:57 +02:00
embedding test: fix warning for comment in embedtest 2023-09-02 10:53:52 +00:00
es-module module: fix the leak in SourceTextModule and ContextifySript 2023-09-14 15:42:26 +00:00
fixtures test_runner: add junit reporter 2023-09-14 08:43:53 +00:00
fuzzers
internet test: use tmpdir.resolve() 2023-08-21 16:41:53 +00:00
js-native-api Revert "test: ignore the copied entry_point.c" 2023-09-10 06:11:37 +00:00
known_issues doc,test: add known path resolution issue in permission model 2023-08-31 06:58:59 +00:00
message test: migrate message source map tests from Python to JS 2023-08-29 10:36:23 +00:00
node-api test,benchmark: use tmpdir.fileURL() 2023-08-21 16:42:03 +00:00
overlapped-checker
parallel test: mark test-runner-watch-mode as flaky 2023-09-14 14:55:19 +00:00
pseudo-tty
pummel test: use setImmediate() in test-heapdump-shadowrealm.js 2023-09-11 15:56:01 +00:00
report test: use tmpdir.resolve() 2023-08-21 16:41:53 +00:00
sequential test: show more info on failure in test-cli-syntax-require.js 2023-09-12 17:02:51 +00:00
testpy
tick-processor test: use tmpdir.resolve() 2023-08-21 16:41:53 +00:00
tools
v8-updates
wasi test: use tmpdir.resolve() 2023-08-21 16:41:53 +00:00
wpt
.eslintrc.yaml
README.md
root.status

Node.js Core Tests

This directory contains code and data used to test the Node.js implementation.

For a detailed guide on how to write tests in this directory, see the guide on writing tests.

On how to run tests in this directory, see the contributing guide.

For the tests to run on Windows, be sure to clone Node.js source code with the autocrlf git config flag set to true.

Test Directories

Directory Runs on CI Purpose
abort Yes Tests that use --abort-on-uncaught-exception and other situations where we want to test something but avoid generating a core file.
addons Yes Tests for addon functionality along with some tests that require an addon.
async-hooks Yes Tests for async_hooks functionality.
benchmark Yes Test minimal functionality of benchmarks.
cctest Yes C++ tests that are run as part of the build process.
code-cache No Tests for a Node.js binary compiled with V8 code cache.
common Common modules shared among many tests. Documentation
doctool Yes Tests for the documentation generator.
es-module Yes Test ESM module loading.
fixtures Test fixtures used in various tests throughout the test suite.
internet No Tests that make real outbound network connections. Tests for networking related modules may also be present in other directories, but those tests do not make outbound connections.
js-native-api Yes Tests for Node.js-agnostic Node-API functionality.
known_issues Yes Tests reproducing known issues within the system. All tests inside of this directory are expected to fail. If a test doesn't fail on certain platforms, those should be skipped via known_issues.status.
message Yes Tests for messages that are output for various conditions (console.log, error messages etc.)
node-api Yes Tests for Node.js-specific Node-API functionality.
parallel Yes Various tests that are able to be run in parallel.
pseudo-tty Yes Tests that require stdin/stdout/stderr to be a TTY.
pummel No Various tests for various modules / system functionality operating under load.
sequential Yes Various tests that must not run in parallel.
testpy Test configuration utility used by various test suites.
tick-processor No Tests for the V8 tick processor integration. The tests are for the logic in lib/internal/v8_prof_processor.js and lib/internal/v8_prof_polyfill.js. The tests confirm that the profile processor packages the correct set of scripts from V8 and introduces the correct platform specific logic.
v8-updates No Tests for V8 performance integration.