1- import path from 'path'
1+ import path from 'node: path'
22import { rollup } from 'rollup'
3- import { expect , test } from 'vitest'
4- import swc from '../dist '
3+ import { expect , it } from 'vitest'
4+ import swc from '../src '
55
66const fixture = ( ...args : string [ ] ) => path . join ( __dirname , 'fixtures' , ...args )
77
8- test ( 'rollup' , async ( ) => {
8+ it ( 'rollup' , async ( ) => {
99 const bundle = await rollup ( {
1010 input : fixture ( 'rollup/index.ts' ) ,
1111 plugins : [
@@ -32,7 +32,7 @@ test('rollup', async() => {
3232 ` )
3333} )
3434
35- test ( 'read tsconfig' , async ( ) => {
35+ it ( 'read tsconfig' , async ( ) => {
3636 const bundle = await rollup ( {
3737 input : fixture ( 'read-tsconfig/index.tsx' ) ,
3838 plugins : [ swc . rollup ( ) ] ,
@@ -53,7 +53,7 @@ test('read tsconfig', async() => {
5353 } ) ) . rejects . toThrow ( 'Syntax Error' )
5454} )
5555
56- test ( 'custom swcrc' , async ( ) => {
56+ it ( 'custom swcrc' , async ( ) => {
5757 const bundle = await rollup ( {
5858 input : fixture ( 'custom-swcrc/index.tsx' ) ,
5959 plugins : [
@@ -72,7 +72,7 @@ test('custom swcrc', async() => {
7272 expect ( code ) . toMatch ( 'customPragma' )
7373} )
7474
75- test ( 'minify' , async ( ) => {
75+ it ( 'minify' , async ( ) => {
7676 const bundle = await rollup ( {
7777 input : fixture ( 'minify/index.ts' ) ,
7878 plugins : [
0 commit comments