File tree Expand file tree Collapse file tree 2 files changed +10
-22
lines changed
test/fixtures/test-runner/snapshots Expand file tree Collapse file tree 2 files changed +10
-22
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
- const { test } = require ( 'node:test' ) ;
2
+ const { snapshot, test } = require ( 'node:test' ) ;
3
+ const { basename, join } = require ( 'node:path' ) ;
4
+
5
+ snapshot . setResolveSnapshotPath ( ( testFile ) => {
6
+ return join ( process . cwd ( ) , `${ basename ( testFile ) } .snapshot` ) ;
7
+ } ) ;
3
8
4
9
test ( '\r' , ( t ) => {
5
10
t . assert . snapshot ( { key : 'value' } ) ;
6
11
} ) ;
7
12
8
- test ( String . fromCharCode ( 55296 ) , t => {
9
- t . assert . snapshot ( { key : 'value' } ) ;
13
+ test ( String . fromCharCode ( 55296 ) , ( t ) => {
14
+ t . assert . snapshot ( { key : 'value' } ) ;
10
15
} ) ;
11
16
12
- test ( String . fromCharCode ( 57343 ) , t => {
13
- t . assert . snapshot ( { key : 'value' } ) ;
17
+ test ( String . fromCharCode ( 57343 ) , ( t ) => {
18
+ t . assert . snapshot ( { key : 'value' } ) ;
14
19
} ) ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments