@@ -7,11 +7,11 @@ import { describe, expect, test } from 'vitest'
77import UnpluginIsolatedDecl from '../src/rollup'
88import { expectSnapshot } from './_utils'
99
10- describe ( 'rollup' , ( ) => {
10+ describe . concurrent ( 'rollup' , ( ) => {
1111 const fixtures = path . resolve ( __dirname , 'fixtures' )
1212 const TEST_SANDBOX_FOLDER = path . resolve ( __dirname , 'temp/rollup' )
1313
14- test ( 'generate basic' , async ( ) => {
14+ test ( 'generate basic' , async ( { expect } ) => {
1515 const dir = 'basic'
1616 const input = path . resolve ( fixtures , dir , 'main.ts' )
1717
@@ -25,7 +25,7 @@ describe('rollup', () => {
2525 expect ( outputToSnapshot ( result . output ) ) . toMatchSnapshot ( )
2626 } )
2727
28- test ( `keep ext` , async ( ) => {
28+ test ( `keep ext` , async ( { expect } ) => {
2929 const dir = 'keep-ext'
3030 const input = path . resolve ( fixtures , dir , 'main.ts' )
3131
@@ -39,7 +39,7 @@ describe('rollup', () => {
3939 expect ( outputToSnapshot ( result . output ) ) . toMatchSnapshot ( )
4040 } )
4141
42- test ( `extraOutdir` , async ( ) => {
42+ test ( `extraOutdir` , async ( { expect } ) => {
4343 const dir = 'extra-outdir'
4444 const input = path . resolve ( fixtures , dir , 'main.ts' )
4545 const dist = path . resolve ( TEST_SANDBOX_FOLDER , dir )
@@ -51,10 +51,10 @@ describe('rollup', () => {
5151 } )
5252 await bundle . write ( { dir : dist } )
5353
54- await expectSnapshot ( dist , `rollup/${ dir } ` )
54+ await expectSnapshot ( dist , `rollup/${ dir } ` , expect )
5555 } )
5656
57- test ( 'write entry-points (#22)' , async ( ) => {
57+ test ( 'write entry-points (#22)' , async ( { expect } ) => {
5858 const dir = 'entry-points-22'
5959 const input = {
6060 a : path . resolve ( fixtures , dir , 'a/index.ts' ) ,
@@ -80,10 +80,10 @@ describe('rollup', () => {
8080 preserveModules : true ,
8181 } )
8282
83- await expectSnapshot ( dist , `rollup/${ dir } ` )
83+ await expectSnapshot ( dist , `rollup/${ dir } ` , expect )
8484 } )
8585
86- test ( 'write entry-points (#34)' , async ( ) => {
86+ test ( 'write entry-points (#34)' , async ( { expect } ) => {
8787 const dir = 'entry-points-34'
8888 const input = {
8989 index : path . resolve ( fixtures , dir , 'main.ts' ) ,
@@ -104,10 +104,10 @@ describe('rollup', () => {
104104
105105 await bundle . write ( { dir : dist } )
106106
107- await expectSnapshot ( dist , `rollup/${ dir } ` )
107+ await expectSnapshot ( dist , `rollup/${ dir } ` , expect )
108108 } )
109109
110- test ( 'custom rewriter' , async ( ) => {
110+ test ( 'custom rewriter' , async ( { expect } ) => {
111111 const dir = 'import-rewriter'
112112 const input = path . resolve ( fixtures , dir , 'index.ts' )
113113
@@ -136,7 +136,7 @@ describe('rollup', () => {
136136 expect ( importer ) . toBe ( path . resolve ( fixtures , dir , 'index.ts' ) )
137137 } )
138138
139- test ( 'no index path' , async ( ) => {
139+ test ( 'no index path' , async ( { expect } ) => {
140140 const dir = 'no-index'
141141 const input = path . resolve ( fixtures , dir , 'main.ts' )
142142 const dist = path . resolve ( TEST_SANDBOX_FOLDER , dir )
@@ -149,6 +149,6 @@ describe('rollup', () => {
149149
150150 await bundle . write ( { dir : dist } )
151151
152- await expectSnapshot ( dist , `rollup/${ dir } ` )
152+ await expectSnapshot ( dist , `rollup/${ dir } ` , expect )
153153 } )
154154} )
0 commit comments