• Home
  • Raw
  • Download

Lines Matching +full:require +full:- +full:common +full:- +full:first

1 # Node.js Core Test Common Modules
7 * [ArrayStream module](#arraystream-module)
8 * [Benchmark module](#benchmark-module)
9 * [Child process module](#child-process-module)
10 * [Common module API](#common-module-api)
11 * [Countdown module](#countdown-module)
12 * [CPU Profiler module](#cpu-profiler-module)
13 * [Debugger module](#debugger-module)
14 * [DNS module](#dns-module)
15 * [Duplex pair helper](#duplex-pair-helper)
16 * [Environment variables](#environment-variables)
17 * [Fixtures module](#fixtures-module)
18 * [Heap dump checker module](#heap-dump-checker-module)
19 * [hijackstdio module](#hijackstdio-module)
20 * [HTTP2 module](#http2-module)
21 * [Internet module](#internet-module)
22 * [ongc module](#ongc-module)
23 * [Report module](#report-module)
24 * [tick module](#tick-module)
25 * [tmpdir module](#tmpdir-module)
26 * [UDP pair helper](#udp-pair-helper)
27 * [WPT module](#wpt-module)
75 ## Common Module API
77 The `common` module is used by tests for consistency across repeated
94 ([SeCreateSymbolicLinkPrivilege](https://msdn.microsoft.com/en-us/library/windows/desktop/bb530716\…
95 On non-Windows platforms, this always returns `true`.
133 const { expectWarning } = require('../common');
191 Attempts to get a valid TTY file descriptor. Returns `-1` if it fails.
206 and that FIPS as been enabled using `--enable-fips`.
352 import { mustNotMutateObjectDeep } from '../common/index.mjs';
369 Caveats: built-in objects that make use of their internal slots (for example,
427 * [\<array>][<array>] First two argument for the `spawn`/`exec` functions.
432 const common = require('../common');
433 const { spawn } = require('node:child_process');
435 spawn(...common.pwdCommand, { stdio: ['pipe'] });
450 can be used to trigger `EBADF` as the first argument. If no such file
489 <!-- eslint-disable no-undef, node-core/require-common-first, node-core/required-modules -->
492 const ArrayStream = require('../common/arraystream');
502 require a particular action to be taken after a given number of completed
506 <!-- eslint-disable strict, node-core/require-common-first, node-core/required-modules -->
509 const Countdown = require('../common/countdown');
538 The `cpu-prof` module provides utilities related to CPU profiling tests.
577 Provides common functionality for tests for `node inspect`.
586 Returns a null-prototype object with properties that are functions and getters
605 The `DNS` module provides utilities related to the `dns` built-in module.
666 The `common/duplexpair` module exports a single function `makeDuplexPair`,
679 If set, `NODE_COMMON_PORT`'s value overrides the `common.PORT` default value of
685 for example `NODE_REGENERATE_SNAPSHOTS=1 out/Release/node test/parallel/test-runner-output.mjs`
698 A comma-separated list of variables names that are appended to the global
704 The `common/fixtures` module provides convenience methods for working with
736 This requires the usage of `--expose-internals`.
757 <!-- eslint-disable no-undef, node-core/require-common-first, node-core/required-modules -->
776 <!-- eslint-disable no-undef, node-core/require-common-first, node-core/required-modules -->
779 const { hijackStdout, restoreStdout } = require('../common/hijackstdio');
824 <!-- eslint-disable no-unused-vars, node-core/require-common-first, node-core/required-modules -->
827 const http2 = require('../common/http2');
835 <!-- eslint-disable no-undef, node-core/require-common-first, node-core/required-modules -->
838 // length is a 24-bit unsigned integer
839 // type is an 8-bit unsigned integer identifying the frame type
840 // flags is an 8-bit unsigned integer containing the flag bits
841 // id is the 32-bit stream identifier, if any.
855 <!-- eslint-disable no-undef, node-core/require-common-first, node-core/required-modules -->
858 // id is the 32-bit stream identifier
860 // padlen is an 8-bit integer giving the number of padding bytes to include
861 // final is a boolean indicating whether the End-of-stream flag should be set,
873 <!-- eslint-disable no-undef, node-core/require-common-first, node-core/required-modules -->
876 // id is the 32-bit stream identifier
879 // padlen is an 8-bit integer giving the number of padding bytes to include
880 // final is a boolean indicating whether the End-of-stream flag should be set,
892 <!-- eslint-disable no-undef, node-core/require-common-first, node-core/required-modules -->
906 <!-- eslint-disable no-undef, node-core/require-common-first, node-core/required-modules -->
919 <!-- eslint-disable no-undef, node-core/require-common-first, node-core/required-modules -->
932 <!-- eslint-disable no-undef, node-core/require-common-first, node-core/required-modules -->
940 The `common/internet` module provides utilities for working with
941 internet-related tests.
946 * `INET_HOST` [\<string>][<string>] A generic host that has registered common
967 A set of addresses for internet-related tests. All properties are configurable
978 require('../common');
979 const onGC = require('../common/ongc');
1065 The first time `refresh()` runs, it adds a listener to process `'exit'` that
1090 skipping tests that require hundreds of megabytes or even gigabytes of temporary
1095 The `common/udppair` module exports a function `makeUDPPair` and a class
1113 code - the current usage of this port in tests is being migrated to
1122 [<Array>]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array
1123 [<ArrayBufferView>]: https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView
1125 [<BufferSource>]: https://developer.mozilla.org/en-US/docs/Web/API/BufferSource
1126 [<ChildProcess>]: ../../doc/api/child_process.md#class-childprocess
1127 [<Error>]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error
1128 [<Function>]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Func…
1129 [<Object>]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object
1130 [<RegExp>]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp
1131 [<URL>]: https://developer.mozilla.org/en-US/docs/Web/API/URL
1132 [<any>]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types
1133 [<bigint>]: https://github.com/tc39/proposal-bigint
1134 [<boolean>]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type
1135 [<number>]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type
1136 [<string>]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type
1137 [Web Platform Tests]: https://github.com/web-platform-tests/wpt