Lines Matching defs:const
2 const {
8 const { getCallerLocation } = internalBinding('util');
9 const {
13 const {
18 const { kEmptyObject } = require('internal/util');
19 const { kCancelledByParent, Test, Suite } = require('internal/test_runner/test');
20 const {
25 const { bigint: hrtime } = process.hrtime;
27 const testResources = new SafeMap();
44 const test = testResources.get(executionAsyncId());
83 const { setupCoverage } = require('internal/test_runner/coverage');
88 const msg = `Warning: Code coverage could not be enabled. ${err}`;
106 const op = summary ? 'clean up' : 'report';
107 const msg = `Warning: Could not ${op} code coverage. ${err}`;
123 const globalOptions = parseCommandLine();
125 const hook = createHook({
133 const parent = testResources.get(triggerAsyncId);
146 const exceptionHandler =
148 const rejectionHandler =
150 const coverage = configureCoverage(root, globalOptions);
151 const exitHandler = () => {
161 const terminationHandler = () => {
219 const parent = testResources.get(executionAsyncId()) || getGlobalRoot();
220 const subtest = parent.createSubtest(Factory, name, options, fn, overrides);
227 const test = (name, options, fn) => {
228 const overrides = {
237 const overrides = {
251 const parent = testResources.get(executionAsyncId()) || getGlobalRoot();