Skip to content

Commit

Permalink
test: heed npm_config_debug (#1445)
Browse files Browse the repository at this point in the history
Examine `process.env.npm_config_debug` to determine whether it's a
Debug or a Release build.
  • Loading branch information
gabrielschulhof authored Feb 16, 2024
1 parent ea71209 commit 034c039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/common/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ async function checkBuildType (buildType) {

async function whichBuildType () {
let buildType = 'Release';
const envBuildType = process.env.NODE_API_BUILD_CONFIG;
const envBuildType = process.env.NODE_API_BUILD_CONFIG || (process.env.npm_config_debug === 'true' ? 'Debug' : 'Release');
if (envBuildType) {
if (Object.values(buildTypes).includes(envBuildType)) {
if (await checkBuildType(envBuildType)) {
Expand Down

0 comments on commit 034c039

Please sign in to comment.