Skip to content

Commit

Permalink
rm date, time from snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
reggi committed Sep 5, 2024
1 parent e7b9e31 commit 15dfd2a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 20 deletions.
33 changes: 15 additions & 18 deletions tap-snapshots/test/lib/commands/install.js.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ silly config load:file:{CWD}/home/.npmrc
silly config load:file:{CWD}/global/etc/npmrc
verbose title npm
verbose argv "--fetch-retries" "0" "--cache" "{CWD}/cache" "--loglevel" "silly" "--color" "false"
verbose logfile logs-max:10 dir:{CWD}/cache/_logs/2024-09-05T20_09_54_305Z-
verbose logfile {CWD}/cache/_logs/2024-09-05T20_09_54_305Z-debug-0.log
verbose logfile logs-max:10 dir:{CWD}/cache/_logs/{DATE}-
verbose logfile {CWD}/cache/_logs/{DATE}-debug-0.log
silly logfile done cleaning log files
verbose stack Error: The developer of this package has specified the following through devEngines
verbose stack Invalid engine "runtime"
Expand All @@ -38,8 +38,8 @@ silly config load:file:{CWD}/home/.npmrc
silly config load:file:{CWD}/global/etc/npmrc
verbose title npm
verbose argv "--fetch-retries" "0" "--cache" "{CWD}/cache" "--loglevel" "silly" "--color" "false"
verbose logfile logs-max:10 dir:{CWD}/cache/_logs/2024-09-05T20_09_54_240Z-
verbose logfile {CWD}/cache/_logs/2024-09-05T20_09_54_240Z-debug-0.log
verbose logfile logs-max:10 dir:{CWD}/cache/_logs/{DATE}-
verbose logfile {CWD}/cache/_logs/{DATE}-debug-0.log
silly logfile done cleaning log files
warn EBADDEVENGINES The developer of this package has specified the following through devEngines
warn EBADDEVENGINES Invalid engine "runtime"
Expand All @@ -59,8 +59,7 @@ silly idealTree buildDeps
silly reify moves {}
silly audit report null
up to date, audited 1 package in 26ms
up to date, audited 1 package in {TIME}
found 0 vulnerabilities
`

Expand All @@ -71,8 +70,8 @@ silly config load:file:{CWD}/home/.npmrc
silly config load:file:{CWD}/global/etc/npmrc
verbose title npm
verbose argv "--fetch-retries" "0" "--cache" "{CWD}/cache" "--loglevel" "silly" "--color" "false"
verbose logfile logs-max:10 dir:{CWD}/cache/_logs/2024-09-05T20_09_54_401Z-
verbose logfile {CWD}/cache/_logs/2024-09-05T20_09_54_401Z-debug-0.log
verbose logfile logs-max:10 dir:{CWD}/cache/_logs/{DATE}-
verbose logfile {CWD}/cache/_logs/{DATE}-debug-0.log
silly logfile done cleaning log files
warn EBADDEVENGINES The developer of this package has specified the following through devEngines
warn EBADDEVENGINES Invalid engine "cpu"
Expand Down Expand Up @@ -104,8 +103,8 @@ silly config load:file:{CWD}/home/.npmrc
silly config load:file:{CWD}/global/etc/npmrc
verbose title npm
verbose argv "--fetch-retries" "0" "--cache" "{CWD}/cache" "--loglevel" "silly" "--color" "false"
verbose logfile logs-max:10 dir:{CWD}/cache/_logs/2024-09-05T20_09_54_111Z-
verbose logfile {CWD}/cache/_logs/2024-09-05T20_09_54_111Z-debug-0.log
verbose logfile logs-max:10 dir:{CWD}/cache/_logs/{DATE}-
verbose logfile {CWD}/cache/_logs/{DATE}-debug-0.log
silly logfile done cleaning log files
verbose stack Error: The developer of this package has specified the following through devEngines
verbose stack Invalid engine "runtime"
Expand All @@ -130,8 +129,8 @@ silly config load:file:{CWD}/home/.npmrc
silly config load:file:{CWD}/global/etc/npmrc
verbose title npm
verbose argv "--fetch-retries" "0" "--cache" "{CWD}/cache" "--loglevel" "silly" "--color" "false" "--force" "true"
verbose logfile logs-max:10 dir:{CWD}/cache/_logs/2024-09-05T20_09_54_176Z-
verbose logfile {CWD}/cache/_logs/2024-09-05T20_09_54_176Z-debug-0.log
verbose logfile logs-max:10 dir:{CWD}/cache/_logs/{DATE}-
verbose logfile {CWD}/cache/_logs/{DATE}-debug-0.log
warn using --force Recommended protections disabled.
silly logfile done cleaning log files
warn EBADDEVENGINES The developer of this package has specified the following through devEngines
Expand All @@ -146,8 +145,7 @@ silly idealTree buildDeps
silly reify moves {}
silly audit report null
up to date, audited 1 package in 26ms
up to date, audited 1 package in {TIME}
found 0 vulnerabilities
`

Expand All @@ -158,15 +156,14 @@ silly config load:file:{CWD}/home/.npmrc
silly config load:file:{CWD}/global/etc/npmrc
verbose title npm
verbose argv "--fetch-retries" "0" "--cache" "{CWD}/cache" "--loglevel" "silly" "--color" "false"
verbose logfile logs-max:10 dir:{CWD}/cache/_logs/2024-09-05T20_09_54_039Z-
verbose logfile {CWD}/cache/_logs/2024-09-05T20_09_54_039Z-debug-0.log
verbose logfile logs-max:10 dir:{CWD}/cache/_logs/{DATE}-
verbose logfile {CWD}/cache/_logs/{DATE}-debug-0.log
silly logfile done cleaning log files
silly packumentCache heap:4345298944 maxSize:1086324736 maxEntrySize:543162368
silly idealTree buildDeps
silly reify moves {}
silly audit report null
up to date, audited 1 package in 31ms
up to date, audited 1 package in {TIME}
found 0 vulnerabilities
`
4 changes: 2 additions & 2 deletions test/lib/commands/install.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const tspawk = require('../../fixtures/tspawk')
const { cleanCwd } = require('../../fixtures/clean-snapshot.js')
const { cleanCwd, cleanTime, cleanDate } = require('../../fixtures/clean-snapshot.js')

const path = require('node:path')
const t = require('tap')

t.cleanSnapshot = (str) => cleanCwd(str)
t.cleanSnapshot = (str) => cleanDate(cleanTime(cleanCwd(str)))

const {
loadNpmWithRegistry: loadMockNpm,
Expand Down

0 comments on commit 15dfd2a

Please sign in to comment.