Skip to content

Commit

Permalink
filter version out of snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Jun 22, 2023
1 parent 157373b commit 66bcedf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tap-snapshots/test/bin.ts.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Object {
Usage:
glob [options] [<pattern> [<pattern> ...]]
Glob v10.2.7
Glob v{VERSION}
Expand the positional glob expression arguments into any matching file system
paths found.
Expand Down
3 changes: 3 additions & 0 deletions test/bin.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import { spawn, SpawnOptions } from 'child_process'
import t from 'tap'
import { sep } from 'path'
import { version } from '../package.json'
const bin = require.resolve('../dist/cjs/src/bin.js')

t.cleanSnapshot = s => s.split(version).join('{VERSION}')

interface Result {
args: string[]
options: SpawnOptions
Expand Down

0 comments on commit 66bcedf

Please sign in to comment.