From a2fb6885771132194b4b2ead9a0c6afe09f00a6f Mon Sep 17 00:00:00 2001 From: isaacs Date: Thu, 2 Mar 2023 14:20:27 -0800 Subject: [PATCH] remove maxDepth test snapshots They're unnecessary, since we're already comparing to the unlimited results, and the presence/absence of 'symlink' makes the test fail on Windows CI. --- tap-snapshots/test/max-depth.ts.test.cjs | 38 ------------------------ test/max-depth.ts | 2 -- 2 files changed, 40 deletions(-) delete mode 100644 tap-snapshots/test/max-depth.ts.test.cjs diff --git a/tap-snapshots/test/max-depth.ts.test.cjs b/tap-snapshots/test/max-depth.ts.test.cjs deleted file mode 100644 index 55860f2b..00000000 --- a/tap-snapshots/test/max-depth.ts.test.cjs +++ /dev/null @@ -1,38 +0,0 @@ -/* IMPORTANT - * This snapshot file is auto-generated, but designed for humans. - * It should be checked into source control and tracked carefully. - * Re-generate by setting TAP_SNAPSHOT=1 and running tests. - * Make sure to inspect the output below. Do not ignore changes! - */ -'use strict' -exports[`test/max-depth.ts TAP set maxDepth > async results 1`] = ` -Array [ - "", - "a", - "a/abcdef", - "a/abcfed", - "a/b", - "a/bc", - "a/c", - "a/cb", - "a/symlink", - "a/x", - "a/z", -] -` - -exports[`test/max-depth.ts TAP set maxDepth > sync results 1`] = ` -Array [ - "", - "a", - "a/abcdef", - "a/abcfed", - "a/b", - "a/bc", - "a/c", - "a/cb", - "a/symlink", - "a/x", - "a/z", -] -` diff --git a/test/max-depth.ts b/test/max-depth.ts index 3f2c68a8..a641ee07 100644 --- a/test/max-depth.ts +++ b/test/max-depth.ts @@ -36,8 +36,6 @@ t.test('set maxDepth', async t => { const ssync = j(syncRes.map(p => p.relative())) const sasync = j(asyncRes.map(p => p.relative())) - t.matchSnapshot(sasync, 'async results') - t.matchSnapshot(ssync, 'sync results') t.same(ssync, expect, 'got all results sync') t.same(sasync, expect, 'got all results async') for (const p of syncRes) {