File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -76,13 +76,11 @@ describe('--internals option', () => {
7676} )
7777
7878describe ( 'Test output options' , ( ) => {
79- compileToChoices . forEach ( choice => {
80- test ( choice , async ( ) => {
81- await expectSuccess ( '1 + 1;' , 'test.js' , '-t' , choice )
82- const [ [ fileName , contents ] ] = mockedWriteFile . mock . calls
83-
84- expect ( ( fileName as string ) . startsWith ( 'test' ) ) . toEqual ( true )
85- expect ( contents ) . toMatchSnapshot ( `output ${ choice } ` )
86- } )
79+ test . each ( compileToChoices ) ( '%s' , async choice => {
80+ await expectSuccess ( '1 + 1;' , 'test.js' , '-t' , choice )
81+ const [ [ fileName , contents ] ] = mockedWriteFile . mock . calls
82+
83+ expect ( ( fileName as string ) . startsWith ( 'test' ) ) . toEqual ( true )
84+ expect ( contents ) . toMatchSnapshot ( `output ${ choice } ` )
8785 } )
8886} )
You can’t perform that action at this time.
0 commit comments