Skip to content

Commit

Permalink
tests ~ improve 'skip' user feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
rivy committed Aug 1, 2022
1 parent b042578 commit 6e0d491
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/dist.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function flattenToValues(obj) {
}

if (!process.env.npm_config_test_dist) {
test('skipped (enable with `npm test --test-dist`)', (t) => t.pass());
test.skip('skipped (enable with `npm test --test-dist`)', () => void 0);
} else {
const testID$CJStoESM = 'CJS/ESM equivalence';
if (vNodeJSMajor < 12) {
Expand Down
6 changes: 2 additions & 4 deletions test/integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,10 @@ test('api', (t) => {

// test examples when using `--test-dist` (ie, with version changes or prior to distribution)
if (!process.env.npm_config_test_dist) {
test('examples are executable...skipped (enable with `npm test --test-dist`)', (t) => t.pass());
test.skip('examples are executable...skipped (enable with `npm test --test-dist`)', () => void 0);
} else {
if (!commandExists.sync('deno')) {
test.skip('`deno` not found; Deno examples not tested', (t) => {
t.pass();
});
test.skip('examples are executable (Deno)...skipped (`deno` not found)', () => void 0);
} else {
test('module loads without panic while using `--no-prompt` (Deno)', (t) => {
const denoModulePath = pkg.exports['.'].deno;
Expand Down

0 comments on commit 6e0d491

Please sign in to comment.