Lines Matching defs:test
10 for (const name in ['test', 'test/reporters']) {
32 const packageRoot = path.join(tmpdir.path, 'node_modules', 'test');
33 const reportersDir = path.join(tmpdir.path, 'node_modules', 'test', 'reporters');
41 function test(argv, expectedToFail = false) {
52 test(['-e', 'console.log(require("test"))']);
53 test(['-e', 'console.log(require("test/reporters"))']);
54 test(['-e', 'import("test").then(m=>console.log(m.default))']);
55 test(['-e', 'import("test/reporters").then(m=>console.log(m.default))'], true);
56 test(['--input-type=module', '-e', 'import test from "test";console.log(test)']);
57 test(['--input-type=module', '-e', 'import test from "test/reporters";console.log(test)'], true);
58 test(['--input-type=module', '-e', 'console.log((await import("test")).default)']);
59 test(['--input-type=module', '-e', 'console.log((await import("test/reporters")).default)'], true);
64 assert.strictEqual(require.resolve('test'), indexFile);
65 assert.strictEqual(require.resolve('test/reporters'), reportersIndexFile);