11import { parse } from '../main.js' ;
2- import { expect , test , vi } from 'vitest' ;
2+ import { expect , test } from 'vitest' ;
33
4- vi . mock ( '@babel/core' , ( ) => import ( 'babel-core-8' ) ) ;
5-
6- test ( 'parses components with Babel 8' , ( ) => {
4+ test ( 'parses components' , ( ) => {
75 const result = parse ( 'export function Button() { return <button />; }' ) ;
86
97 expect ( result ) . toHaveLength ( 1 ) ;
108} ) ;
119
12- test ( 'parses TypeScript function props with Babel 8 ' , ( ) => {
10+ test ( 'parses TypeScript function props' , ( ) => {
1311 const result = parse (
1412 `export type MenuProps = {
1513 onOpenChange?: (open: boolean) => void;
@@ -37,7 +35,7 @@ test('parses TypeScript function props with Babel 8', () => {
3735 } ) ;
3836} ) ;
3937
40- test ( 'parses generic arrow functions in TypeScript files with Babel 8 ' , ( ) => {
38+ test ( 'parses generic arrow functions in TypeScript files' , ( ) => {
4139 const result = parse (
4240 `import React from 'react';
4341
@@ -54,7 +52,7 @@ test('parses generic arrow functions in TypeScript files with Babel 8', () => {
5452 expect ( result ) . toHaveLength ( 1 ) ;
5553} ) ;
5654
57- test ( 'parses mapped TypeScript props with Babel 8 ' , ( ) => {
55+ test ( 'parses mapped TypeScript props' , ( ) => {
5856 const result = parse (
5957 `export type StatusFiltersProps<K extends string = string> = {
6058 statuses?: { readonly [Key in K]: number };
0 commit comments