File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const file = process.argv[2]
55
66const node = process . execPath
77const { execFile} = require ( 'child_process' )
8- const { relative, basename} = require ( 'path' )
8+ const { relative, basename, resolve } = require ( 'path' )
99
1010t . cleanSnapshot = o => o
1111 . replace ( / ( \n a t [ ^ \n ] * ) + / g, '\n{STACK}' )
@@ -26,7 +26,7 @@ t.cleanSnapshot = o => o
2626 . trim ( ) + '\n'
2727
2828const runTest = file => t => {
29- t . snapshotFile = ` tap-snapshots/test/fixtures/${ basename ( file ) } .test.cjs`
29+ t . snapshotFile = resolve ( __dirname , `../ tap-snapshots/test/fixtures/${ basename ( file ) } .test.cjs`)
3030 const firstLine = fs . readFileSync ( file , 'utf8' ) . split ( / \n / ) [ 0 ]
3131 // default all node versions to old default for consistency
3232 const match = firstLine && firstLine . match ( / ^ # ! \/ u s r \/ b i n \/ e n v n o d e ( .* ) $ / )
You can’t perform that action at this time.
0 commit comments