Skip to content

Commit

Permalink
tests ~ fix --test-dist flag detection
Browse files Browse the repository at this point in the history
  • Loading branch information
rivy committed Jul 31, 2022
1 parent dd0585b commit ff87e65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/dist.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function flattenToValues(obj) {
return values;
}

if (!process.env.NPM_CONFIG_TEST_DIST) {
if (!process.env.npm_config_test_dist) {
test('skipped (enable with `--test-dist`)', (t) => t.pass());
} else {
const testID$CJStoESM = 'CJS/ESM equivalence';
Expand Down
2 changes: 1 addition & 1 deletion test/integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ test('api', (t) => {
});

// test examples with version changes or distribution
if (!process.env.NPM_CONFIG_TEST_DIST) {
if (!process.env.npm_config_test_dist) {
test('skipped example testing (enable with `--test-dist`)', (t) => t.pass());
} else {
if (!commandExists.sync('deno')) {
Expand Down

0 comments on commit ff87e65

Please sign in to comment.