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 11'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+ } ) ;
38
49test ( '\r' , ( t ) => {
510 t . assert . snapshot ( { key : 'value' } ) ;
611} ) ;
712
8- test ( String . fromCharCode ( 55296 ) , t => {
9- t . assert . snapshot ( { key : 'value' } ) ;
13+ test ( String . fromCharCode ( 55296 ) , ( t ) => {
14+ t . assert . snapshot ( { key : 'value' } ) ;
1015} ) ;
1116
12- test ( String . fromCharCode ( 57343 ) , t => {
13- t . assert . snapshot ( { key : 'value' } ) ;
17+ test ( String . fromCharCode ( 57343 ) , ( t ) => {
18+ t . assert . snapshot ( { key : 'value' } ) ;
1419} ) ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments