mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
test: handle undefined default_configuration
PR-URL: https://github.com/nodejs/node/pull/30465 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
5bb4d85b25
commit
70281ce1f0
@ -118,8 +118,9 @@ const enoughTestCpu = Array.isArray(cpus) &&
|
||||
|
||||
const rootDir = isWindows ? 'c:\\' : '/';
|
||||
|
||||
const buildType = process.config.target_defaults.default_configuration;
|
||||
|
||||
const buildType = process.config.target_defaults ?
|
||||
process.config.target_defaults.default_configuration :
|
||||
'Release';
|
||||
|
||||
// If env var is set then enable async_hook hooks for all tests.
|
||||
if (process.env.NODE_TEST_WITH_ASYNC_HOOKS) {
|
||||
|
Loading…
Reference in New Issue
Block a user