From b473da62e1a1dfaab1bcdfd454b9ff3fc34c2457 Mon Sep 17 00:00:00 2001 From: Roy Ivy III Date: Sun, 31 Jul 2022 00:16:53 -0500 Subject: [PATCH] tests ~ improve 'skip' user feedback --- test/dist.test.js | 2 +- test/integration.test.js | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/test/dist.test.js b/test/dist.test.js index e4b5ded..0344bf8 100644 --- a/test/dist.test.js +++ b/test/dist.test.js @@ -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) { diff --git a/test/integration.test.js b/test/integration.test.js index 5f69782..c3d86de 100644 --- a/test/integration.test.js +++ b/test/integration.test.js @@ -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;