Lines Matching defs:const

4 const assert = require('assert');
5 const { spawnSync } = require('child_process');
6 const { join } = require('path');
7 const { readdirSync } = require('fs');
8 const fixtures = require('../common/fixtures');
9 const testFixtures = fixtures.path('test-runner');
13 const args = ['--test', 'a-random-file-that-does-not-exist.js'];
14 const child = spawnSync(process.execPath, args);
25 const args = ['--test'];
26 const child = spawnSync(process.execPath, args, { cwd: join(testFixtures, 'default-behavior') });
31 const stdout = child.stdout.toString();
42 const args = ['--require', join(testFixtures, 'protoMutation.js'), '--test'];
43 const child = spawnSync(process.execPath, args, { cwd: join(testFixtures, 'default-behavior') });
45 const stdout = child.stdout.toString();
59 const args = ['--test', join(testFixtures, 'index.js')];
60 const child = spawnSync(process.execPath, args, { cwd: testFixtures });
65 const stdout = child.stdout.toString();
71 const args = ['--test', join(testFixtures, 'default-behavior/node_modules')];
72 const child = spawnSync(process.execPath, args);
77 const stdout = child.stdout.toString();
83 const args = ['--test'];
84 const options = { cwd: join(testFixtures, 'default-behavior') };
85 const child = spawnSync(process.execPath, args, options);
90 const stdout = child.stdout.toString();
101 const flags = [
109 const child = spawnSync(process.execPath, args);
114 const stderr = child.stderr.toString();
121 const args = [
127 const child = spawnSync(process.execPath, args);
133 const stdout = child.stdout.toString();
172 const args = [
176 const child = spawnSync(process.execPath, args);
181 const stdout = child.stdout.toString();
198 const args = ['--no-warnings',
202 const child = spawnSync(process.execPath, args);
207 const stdout = child.stdout.toString();
213 const args = ['--test', '--test-shard=1', join(testFixtures, 'index.js')];
214 const child = spawnSync(process.execPath, args, { cwd: testFixtures });
219 const stdout = child.stdout.toString();
225 const args = ['--test', '--test-shard=1/2/3', join(testFixtures, 'index.js')];
226 const child = spawnSync(process.execPath, args, { cwd: testFixtures });
231 const stdout = child.stdout.toString();
237 const args = ['--test', '--test-shard=0/3', join(testFixtures, 'index.js')];
238 const child = spawnSync(process.execPath, args, { cwd: testFixtures });
243 const stdout = child.stdout.toString();
249 const args = ['--test', '--test-shard=0xf/20abcd', join(testFixtures, 'index.js')];
250 const child = spawnSync(process.execPath, args, { cwd: testFixtures });
255 const stdout = child.stdout.toString();
261 const args = ['--test', '--test-shard=hello', join(testFixtures, 'index.js')];
262 const child = spawnSync(process.execPath, args, { cwd: testFixtures });
267 const stdout = child.stdout.toString();
273 const shardsTestPath = join(testFixtures, 'shards');
274 const allShardsTestsFiles = readdirSync(shardsTestPath).map((file) => join(shardsTestPath, file));
275 const args = [
280 const child = spawnSync(process.execPath, args);
285 const stdout = child.stdout.toString();
309 const shardsTestPath = join(testFixtures, 'shards');
310 const allShardsTestsFiles = readdirSync(shardsTestPath).map((file) => join(shardsTestPath, file));
311 const args = [
316 const child = spawnSync(process.execPath, args);
321 const stdout = child.stdout.toString();