Skip to content
Permalink
Browse files

test: handle undefined default_configuration

PR-URL: #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>
  • Loading branch information
codebytere authored and MylesBorins committed Nov 13, 2019
1 parent ec5fe99 commit e4a1cffcbceeb3c175178258d011c1b067721319
Showing with 3 additions and 2 deletions.
  1. +3 −2 test/common/index.js
@@ -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) {

0 comments on commit e4a1cff

Please sign in to comment.
You can’t perform that action at this time.