1
- import path from 'path'
1
+ import path from 'node: path'
2
2
import { 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 '
5
5
6
6
const fixture = ( ...args : string [ ] ) => path . join ( __dirname , 'fixtures' , ...args )
7
7
8
- test ( 'rollup' , async ( ) => {
8
+ it ( 'rollup' , async ( ) => {
9
9
const bundle = await rollup ( {
10
10
input : fixture ( 'rollup/index.ts' ) ,
11
11
plugins : [
@@ -32,7 +32,7 @@ test('rollup', async() => {
32
32
` )
33
33
} )
34
34
35
- test ( 'read tsconfig' , async ( ) => {
35
+ it ( 'read tsconfig' , async ( ) => {
36
36
const bundle = await rollup ( {
37
37
input : fixture ( 'read-tsconfig/index.tsx' ) ,
38
38
plugins : [ swc . rollup ( ) ] ,
@@ -53,7 +53,7 @@ test('read tsconfig', async() => {
53
53
} ) ) . rejects . toThrow ( 'Syntax Error' )
54
54
} )
55
55
56
- test ( 'custom swcrc' , async ( ) => {
56
+ it ( 'custom swcrc' , async ( ) => {
57
57
const bundle = await rollup ( {
58
58
input : fixture ( 'custom-swcrc/index.tsx' ) ,
59
59
plugins : [
@@ -72,7 +72,7 @@ test('custom swcrc', async() => {
72
72
expect ( code ) . toMatch ( 'customPragma' )
73
73
} )
74
74
75
- test ( 'minify' , async ( ) => {
75
+ it ( 'minify' , async ( ) => {
76
76
const bundle = await rollup ( {
77
77
input : fixture ( 'minify/index.ts' ) ,
78
78
plugins : [
0 commit comments