File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -15,22 +15,14 @@ expect.addSnapshotSerializer({
1515
1616cases (
1717 'format' ,
18- ( {
19- snapshotLog = false ,
20- throws = false ,
21- setup = ( ) => ( ) => { } ,
22- signal = false ,
23- args = [ ] ,
24- } ) => {
18+ ( { snapshotLog = false , throws = false , signal = false , args = [ ] } ) => {
2519 // beforeEach
2620 const { sync : crossSpawnSyncMock } = require ( 'cross-spawn' )
2721 const originalExit = process . exit
2822 const originalArgv = process . argv
2923 const originalLog = console . log
3024 process . exit = jest . fn ( )
3125 console . log = jest . fn ( )
32- const teardown = setup ( )
33-
3426 try {
3527 // tests
3628 process . argv = [ 'node' , '../' , ...args ]
5850 throw error
5951 }
6052 } finally {
61- teardown ( )
6253 // afterEach
6354 process . exit = originalExit
6455 process . argv = originalArgv
You can’t perform that action at this time.
0 commit comments