Skip to content

Commit

Permalink
test: remove update to process.config (#1208)
Browse files Browse the repository at this point in the history
process.config is now read-only. Remove
attempt to update it. This may break the ability
to run tests in debug mode but is needed to get ci
running again.

Signed-off-by: Michael Dawson <mdawson@devrus.com>
  • Loading branch information
mhdawson authored Sep 20, 2022
1 parent 30cd4a3 commit d5fc875
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,6 @@ function loadTestModules (currentDirectory = __dirname, pre = '') {

loadTestModules();

process.config.target_defaults.default_configuration =
fs
.readdirSync(path.join(__dirname, process.env.REL_BUILD_PATH || '', 'build'))
.filter((item) => (item === 'Debug' || item === 'Release'))[0];

let napiVersion = Number(process.versions.napi);
if (process.env.NAPI_VERSION) {
// we need this so that we don't try run tests that rely
Expand Down

0 comments on commit d5fc875

Please sign in to comment.