Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: removed the usage of default_configuration. #1226

Closed
wants to merge 5 commits into from

Conversation

NickNaso
Copy link
Member

This PR remove the usage of process.config.target_defaults.default_configuration in all test suite.
A new function whichBuildType has been introduced and it has the reponsability to check which type of build node-gyp made so the test can refer to the right folders.

Refs:

if (await checkBuildType(buildTypes.Debug)) {
buildType = buildTypes.Debug;
let buildType;
const envBuildType = process.env.BUILD_TYPE;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const envBuildType = process.env.BUILD_TYPE;
const envBuildType = process.env.BUILD_TYPE || 'Release';

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion in meeting from @vmoroz how about process.env.NODE_API_BUILD_CONFIG

Copy link
Member

@mhdawson mhdawson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

mhdawson pushed a commit that referenced this pull request Dec 2, 2022
PR-URL: #1226
Reviewed-By: Michael Dawson <midawson@redhat.com
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
@mhdawson
Copy link
Member

mhdawson commented Dec 2, 2022

Landed as 10ad762

@mhdawson mhdawson closed this Dec 2, 2022
johnfrench3 pushed a commit to johnfrench3/node-addon-api-git that referenced this pull request Aug 11, 2023
PR-URL: nodejs/node-addon-api#1226
Reviewed-By: Michael Dawson <midawson@redhat.com
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants