From 77e0a26d4034edc3ddc49afa80f1ebb5b48d5c44 Mon Sep 17 00:00:00 2001 From: Nathan Friedly Date: Thu, 13 Jun 2024 17:37:23 +0000 Subject: [PATCH] update test shapshots for Jest's new format --- package-lock.json | 65 ++-------- .../__snapshots__/file_structure.test.js.snap | 112 +++++++++--------- 2 files changed, 69 insertions(+), 108 deletions(-) diff --git a/package-lock.json b/package-lock.json index 24a340c..cb3becd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2470,13 +2470,10 @@ } }, "node_modules/eslint/node_modules/semver": { - "version": "7.3.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.4.tgz", - "integrity": "sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw==", + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, "bin": { "semver": "bin/semver.js" }, @@ -2806,9 +2803,9 @@ } }, "node_modules/get-func-name": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", - "integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", + "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==", "dev": true, "engines": { "node": "*" @@ -4462,18 +4459,6 @@ "resolved": "https://registry.npmjs.org/lodash.union/-/lodash.union-4.6.0.tgz", "integrity": "sha1-SLtQiECfFvGCFmZkHETdGqrjzYg=" }, - "node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/make-dir": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", @@ -5539,12 +5524,6 @@ "node": ">=10" } }, - "node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/yargs": { "version": "16.2.0", "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", @@ -7413,13 +7392,10 @@ "dev": true }, "semver": { - "version": "7.3.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.4.tgz", - "integrity": "sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", + "dev": true }, "type-check": { "version": "0.4.0", @@ -7717,9 +7693,9 @@ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==" }, "get-func-name": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", - "integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", + "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==", "dev": true }, "get-package-type": { @@ -8950,15 +8926,6 @@ "resolved": "https://registry.npmjs.org/lodash.union/-/lodash.union-4.6.0.tgz", "integrity": "sha1-SLtQiECfFvGCFmZkHETdGqrjzYg=" }, - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, "make-dir": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", @@ -9738,12 +9705,6 @@ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==" }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "yargs": { "version": "16.2.0", "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", diff --git a/test/__snapshots__/file_structure.test.js.snap b/test/__snapshots__/file_structure.test.js.snap index 809f40b..6dcaeac 100644 --- a/test/__snapshots__/file_structure.test.js.snap +++ b/test/__snapshots__/file_structure.test.js.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`file structure cli with --force=node: {"cwd":"test/","source":"fixtures/"} 1`] = ` -Array [ +[ "/fixtures", "/fixtures/.dotfile", "/fixtures/file-symlink.txt", @@ -17,7 +17,7 @@ Array [ `; exports[`file structure cli with --force=node: {"cwd":"test/","source":"fixtures/*"} 1`] = ` -Array [ +[ "/fixtures", "/fixtures/file-symlink.txt", "/fixtures/file.txt", @@ -32,7 +32,7 @@ Array [ `; exports[`file structure cli with --force=node: {"cwd":"test/","source":"fixtures/*/*.txt"} 1`] = ` -Array [ +[ "/fixtures", "/fixtures/subdir", "/fixtures/subdir/subfile.txt", @@ -43,7 +43,7 @@ Array [ `; exports[`file structure cli with --force=node: {"cwd":"test/","source":"fixtures/subdir/subfile.txt"} 1`] = ` -Array [ +[ "/fixtures", "/fixtures/subdir", "/fixtures/subdir/subfile.txt", @@ -52,21 +52,21 @@ Array [ `; exports[`file structure cli with --force=node: {"cwd":"test/fixtures","source":"file.txt"} 1`] = ` -Array [ +[ "/file.txt", "/test.zip", ] `; exports[`file structure cli with --force=node: {"cwd":"test/fixtures","source":"obama.jpg"} 1`] = ` -Array [ +[ "/obama.jpg", "/test.zip", ] `; exports[`file structure cli with --force=node: {"cwd":"test/fixtures","source":"subdir/subfile.txt"} 1`] = ` -Array [ +[ "/subdir", "/subdir/subfile.txt", "/test.zip", @@ -74,7 +74,7 @@ Array [ `; exports[`file structure cli with --force=node: {"cwd":"test/fixtures","source":["file.txt",".dotfile"]} 1`] = ` -Array [ +[ "/.dotfile", "/file.txt", "/test.zip", @@ -82,7 +82,7 @@ Array [ `; exports[`file structure cli with --force=node: {"cwd":"test/fixtures","source":["file.txt","obama.jpg"]} 1`] = ` -Array [ +[ "/file.txt", "/obama.jpg", "/test.zip", @@ -90,7 +90,7 @@ Array [ `; exports[`file structure cli with --force=node: {"cwd":"test/fixtures","source":["file.txt","subdir"]} 1`] = ` -Array [ +[ "/file.txt", "/subdir", "/subdir/subfile.txt", @@ -99,7 +99,7 @@ Array [ `; exports[`file structure cli with --force=node: {"cwd":"test/fixtures/","source":"*"} 1`] = ` -Array [ +[ "/file-symlink.txt", "/file.txt", "/multiline.txt", @@ -113,7 +113,7 @@ Array [ `; exports[`file structure cli with --force=node: {"cwd":"test/fixtures/","source":"./"} 1`] = ` -Array [ +[ "/.dotfile", "/file-symlink.txt", "/file.txt", @@ -128,21 +128,21 @@ Array [ `; exports[`file structure cli with --force=node: {"cwd":"test/fixtures/","source":"file-symlink.txt"} 1`] = ` -Array [ +[ "/file-symlink.txt", "/test.zip", ] `; exports[`file structure cli with --force=node: {"cwd":"test/fixtures/subdir","source":"../file.txt"} 1`] = ` -Array [ +[ "/file.txt", "/test.zip", ] `; exports[`file structure cli: {"cwd":"test/","source":"fixtures/"} 1`] = ` -Array [ +[ "/fixtures", "/fixtures/.dotfile", "/fixtures/file-symlink.txt", @@ -158,7 +158,7 @@ Array [ `; exports[`file structure cli: {"cwd":"test/","source":"fixtures/*"} 1`] = ` -Array [ +[ "/fixtures", "/fixtures/file-symlink.txt", "/fixtures/file.txt", @@ -173,7 +173,7 @@ Array [ `; exports[`file structure cli: {"cwd":"test/","source":"fixtures/*/*.txt"} 1`] = ` -Array [ +[ "/fixtures", "/fixtures/subdir", "/fixtures/subdir/subfile.txt", @@ -184,7 +184,7 @@ Array [ `; exports[`file structure cli: {"cwd":"test/","source":"fixtures/subdir/subfile.txt"} 1`] = ` -Array [ +[ "/fixtures", "/fixtures/subdir", "/fixtures/subdir/subfile.txt", @@ -193,21 +193,21 @@ Array [ `; exports[`file structure cli: {"cwd":"test/fixtures","source":"file.txt"} 1`] = ` -Array [ +[ "/file.txt", "/test.zip", ] `; exports[`file structure cli: {"cwd":"test/fixtures","source":"obama.jpg"} 1`] = ` -Array [ +[ "/obama.jpg", "/test.zip", ] `; exports[`file structure cli: {"cwd":"test/fixtures","source":"subdir/subfile.txt"} 1`] = ` -Array [ +[ "/subdir", "/subdir/subfile.txt", "/test.zip", @@ -215,7 +215,7 @@ Array [ `; exports[`file structure cli: {"cwd":"test/fixtures","source":["file.txt",".dotfile"]} 1`] = ` -Array [ +[ "/.dotfile", "/file.txt", "/test.zip", @@ -223,7 +223,7 @@ Array [ `; exports[`file structure cli: {"cwd":"test/fixtures","source":["file.txt","obama.jpg"]} 1`] = ` -Array [ +[ "/file.txt", "/obama.jpg", "/test.zip", @@ -231,7 +231,7 @@ Array [ `; exports[`file structure cli: {"cwd":"test/fixtures","source":["file.txt","subdir"]} 1`] = ` -Array [ +[ "/file.txt", "/subdir", "/subdir/subfile.txt", @@ -240,7 +240,7 @@ Array [ `; exports[`file structure cli: {"cwd":"test/fixtures/","source":"*"} 1`] = ` -Array [ +[ "/file-symlink.txt", "/file.txt", "/multiline.txt", @@ -254,7 +254,7 @@ Array [ `; exports[`file structure cli: {"cwd":"test/fixtures/","source":"./"} 1`] = ` -Array [ +[ "/.dotfile", "/file-symlink.txt", "/file.txt", @@ -269,21 +269,21 @@ Array [ `; exports[`file structure cli: {"cwd":"test/fixtures/","source":"file-symlink.txt"} 1`] = ` -Array [ +[ "/file-symlink.txt", "/test.zip", ] `; exports[`file structure cli: {"cwd":"test/fixtures/subdir","source":"../file.txt"} 1`] = ` -Array [ +[ "/file.txt", "/test.zip", ] `; exports[`file structure programmatic with nodeZip: {"cwd":"test/","source":"fixtures/"} 1`] = ` -Array [ +[ "/fixtures", "/fixtures/.dotfile", "/fixtures/file-symlink.txt", @@ -299,7 +299,7 @@ Array [ `; exports[`file structure programmatic with nodeZip: {"cwd":"test/","source":"fixtures/*"} 1`] = ` -Array [ +[ "/fixtures", "/fixtures/file-symlink.txt", "/fixtures/file.txt", @@ -314,7 +314,7 @@ Array [ `; exports[`file structure programmatic with nodeZip: {"cwd":"test/","source":"fixtures/*/*.txt"} 1`] = ` -Array [ +[ "/fixtures", "/fixtures/subdir", "/fixtures/subdir/subfile.txt", @@ -325,7 +325,7 @@ Array [ `; exports[`file structure programmatic with nodeZip: {"cwd":"test/","source":"fixtures/subdir/subfile.txt"} 1`] = ` -Array [ +[ "/fixtures", "/fixtures/subdir", "/fixtures/subdir/subfile.txt", @@ -334,21 +334,21 @@ Array [ `; exports[`file structure programmatic with nodeZip: {"cwd":"test/fixtures","source":"file.txt"} 1`] = ` -Array [ +[ "/file.txt", "/test.zip", ] `; exports[`file structure programmatic with nodeZip: {"cwd":"test/fixtures","source":"obama.jpg"} 1`] = ` -Array [ +[ "/obama.jpg", "/test.zip", ] `; exports[`file structure programmatic with nodeZip: {"cwd":"test/fixtures","source":"subdir/subfile.txt"} 1`] = ` -Array [ +[ "/subdir", "/subdir/subfile.txt", "/test.zip", @@ -356,7 +356,7 @@ Array [ `; exports[`file structure programmatic with nodeZip: {"cwd":"test/fixtures","source":["file.txt",".dotfile"]} 1`] = ` -Array [ +[ "/.dotfile", "/file.txt", "/test.zip", @@ -364,7 +364,7 @@ Array [ `; exports[`file structure programmatic with nodeZip: {"cwd":"test/fixtures","source":["file.txt","obama.jpg"]} 1`] = ` -Array [ +[ "/file.txt", "/obama.jpg", "/test.zip", @@ -372,7 +372,7 @@ Array [ `; exports[`file structure programmatic with nodeZip: {"cwd":"test/fixtures","source":["file.txt","subdir"]} 1`] = ` -Array [ +[ "/file.txt", "/subdir", "/subdir/subfile.txt", @@ -381,7 +381,7 @@ Array [ `; exports[`file structure programmatic with nodeZip: {"cwd":"test/fixtures/","source":"*"} 1`] = ` -Array [ +[ "/file-symlink.txt", "/file.txt", "/multiline.txt", @@ -395,7 +395,7 @@ Array [ `; exports[`file structure programmatic with nodeZip: {"cwd":"test/fixtures/","source":"./"} 1`] = ` -Array [ +[ "/.dotfile", "/file-symlink.txt", "/file.txt", @@ -410,21 +410,21 @@ Array [ `; exports[`file structure programmatic with nodeZip: {"cwd":"test/fixtures/","source":"file-symlink.txt"} 1`] = ` -Array [ +[ "/file-symlink.txt", "/test.zip", ] `; exports[`file structure programmatic with nodeZip: {"cwd":"test/fixtures/subdir","source":"../file.txt"} 1`] = ` -Array [ +[ "/file.txt", "/test.zip", ] `; exports[`file structure programmatic: {"cwd":"test/","source":"fixtures/"} 1`] = ` -Array [ +[ "/fixtures", "/fixtures/.dotfile", "/fixtures/file-symlink.txt", @@ -440,7 +440,7 @@ Array [ `; exports[`file structure programmatic: {"cwd":"test/","source":"fixtures/*"} 1`] = ` -Array [ +[ "/fixtures", "/fixtures/file-symlink.txt", "/fixtures/file.txt", @@ -455,7 +455,7 @@ Array [ `; exports[`file structure programmatic: {"cwd":"test/","source":"fixtures/*/*.txt"} 1`] = ` -Array [ +[ "/fixtures", "/fixtures/subdir", "/fixtures/subdir/subfile.txt", @@ -466,7 +466,7 @@ Array [ `; exports[`file structure programmatic: {"cwd":"test/","source":"fixtures/subdir/subfile.txt"} 1`] = ` -Array [ +[ "/fixtures", "/fixtures/subdir", "/fixtures/subdir/subfile.txt", @@ -475,21 +475,21 @@ Array [ `; exports[`file structure programmatic: {"cwd":"test/fixtures","source":"file.txt"} 1`] = ` -Array [ +[ "/file.txt", "/test.zip", ] `; exports[`file structure programmatic: {"cwd":"test/fixtures","source":"obama.jpg"} 1`] = ` -Array [ +[ "/obama.jpg", "/test.zip", ] `; exports[`file structure programmatic: {"cwd":"test/fixtures","source":"subdir/subfile.txt"} 1`] = ` -Array [ +[ "/subdir", "/subdir/subfile.txt", "/test.zip", @@ -497,7 +497,7 @@ Array [ `; exports[`file structure programmatic: {"cwd":"test/fixtures","source":["file.txt",".dotfile"]} 1`] = ` -Array [ +[ "/.dotfile", "/file.txt", "/test.zip", @@ -505,7 +505,7 @@ Array [ `; exports[`file structure programmatic: {"cwd":"test/fixtures","source":["file.txt","obama.jpg"]} 1`] = ` -Array [ +[ "/file.txt", "/obama.jpg", "/test.zip", @@ -513,7 +513,7 @@ Array [ `; exports[`file structure programmatic: {"cwd":"test/fixtures","source":["file.txt","subdir"]} 1`] = ` -Array [ +[ "/file.txt", "/subdir", "/subdir/subfile.txt", @@ -522,7 +522,7 @@ Array [ `; exports[`file structure programmatic: {"cwd":"test/fixtures/","source":"*"} 1`] = ` -Array [ +[ "/file-symlink.txt", "/file.txt", "/multiline.txt", @@ -536,7 +536,7 @@ Array [ `; exports[`file structure programmatic: {"cwd":"test/fixtures/","source":"./"} 1`] = ` -Array [ +[ "/.dotfile", "/file-symlink.txt", "/file.txt", @@ -551,14 +551,14 @@ Array [ `; exports[`file structure programmatic: {"cwd":"test/fixtures/","source":"file-symlink.txt"} 1`] = ` -Array [ +[ "/file-symlink.txt", "/test.zip", ] `; exports[`file structure programmatic: {"cwd":"test/fixtures/subdir","source":"../file.txt"} 1`] = ` -Array [ +[ "/file.txt", "/test.zip", ]