• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1import { createRequire } from 'module';
2
3const require = createRequire(import.meta.url);
4const common = require('./index.js');
5
6const {
7  allowGlobals,
8  buildType,
9  canCreateSymLink,
10  checkoutEOL,
11  childShouldThrowAndAbort,
12  createZeroFilledFile,
13  enoughTestMem,
14  expectsError,
15  expectWarning,
16  getArrayBufferViews,
17  getBufferSources,
18  getCallSite,
19  getTTYfd,
20  hasCrypto,
21  hasIPv6,
22  hasMultiLocalhost,
23  isAIX,
24  isAlive,
25  isDumbTerminal,
26  isFreeBSD,
27  isIBMi,
28  isLinux,
29  isLinuxPPCBE,
30  isMainThread,
31  isOpenBSD,
32  isOSX,
33  isSunOS,
34  isWindows,
35  localIPv6Hosts,
36  mustCall,
37  mustCallAtLeast,
38  mustNotCall,
39  mustNotMutateObjectDeep,
40  mustSucceed,
41  nodeProcessAborted,
42  opensslCli,
43  parseTestFlags,
44  PIPE,
45  platformTimeout,
46  printSkipMessage,
47  runWithInvalidFD,
48  skip,
49  skipIf32Bits,
50  skipIfDumbTerminal,
51  skipIfEslintMissing,
52  skipIfInspectorDisabled,
53  spawnPromisified,
54} = common;
55
56const getPort = () => common.PORT;
57
58export {
59  allowGlobals,
60  buildType,
61  canCreateSymLink,
62  checkoutEOL,
63  childShouldThrowAndAbort,
64  createRequire,
65  createZeroFilledFile,
66  enoughTestMem,
67  expectsError,
68  expectWarning,
69  getArrayBufferViews,
70  getBufferSources,
71  getCallSite,
72  getPort,
73  getTTYfd,
74  hasCrypto,
75  hasIPv6,
76  hasMultiLocalhost,
77  isAIX,
78  isAlive,
79  isDumbTerminal,
80  isFreeBSD,
81  isIBMi,
82  isLinux,
83  isLinuxPPCBE,
84  isMainThread,
85  isOpenBSD,
86  isOSX,
87  isSunOS,
88  isWindows,
89  localIPv6Hosts,
90  mustCall,
91  mustCallAtLeast,
92  mustNotCall,
93  mustNotMutateObjectDeep,
94  mustSucceed,
95  nodeProcessAborted,
96  opensslCli,
97  parseTestFlags,
98  PIPE,
99  platformTimeout,
100  printSkipMessage,
101  runWithInvalidFD,
102  skip,
103  skipIf32Bits,
104  skipIfDumbTerminal,
105  skipIfEslintMissing,
106  skipIfInspectorDisabled,
107  spawnPromisified,
108};
109