Skip to content

Commit 74cf1cd

Browse files
committed
test: handle undefined default_configuration
1 parent 312c02d commit 74cf1cd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/common/index.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,9 @@ const enoughTestCpu = Array.isArray(cpus) &&
118118

119119
const rootDir = isWindows ? 'c:\\' : '/';
120120

121-
const buildType = process.config.target_defaults.default_configuration;
122-
121+
const buildType = process.config.target_defaults ?
122+
process.config.target_defaults.default_configuration :
123+
'Release';
123124

124125
// If env var is set then enable async_hook hooks for all tests.
125126
if (process.env.NODE_TEST_WITH_ASYNC_HOOKS) {

0 commit comments

Comments
 (0)