You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Global variables that are shared across the jest worker pool
13
10
// These variables must be static and serializable
14
-
if((process.env.PK_TEST_PLATFORM!=null)!==(process.env.PK_TEST_COMMAND!=null))throwError('Both PK_TEST_PLATFORM and PK_TEST_COMMAND must be set together.')
15
11
constglobals={
16
12
// Absolute directory to the project root
17
-
projectDir: __dirname,
13
+
projectDir: projectPath,
18
14
// Absolute directory to the test root
19
-
testDir: path.join(__dirname,'tests'),
20
-
// Default global data directory
21
-
dataDir: fs.mkdtempSync(
22
-
path.join(os.tmpdir(),'polykey-test-global-'),
23
-
),
15
+
testDir: path.join(projectPath,'tests'),
24
16
// Default asynchronous test timeout
25
17
defaultTimeout: 20000,
26
18
failedConnectionTimeout: 50000,
@@ -31,10 +23,11 @@ const globals = {
31
23
32
24
// The `globalSetup` and `globalTeardown` cannot access the `globals`
33
25
// They run in their own process context
34
-
// They can receive process environment
26
+
// They can however receive the process environment
0 commit comments