File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
import { describe , it , expect } from 'vitest' ;
2
2
import { dedent } from 'ts-dedent' ;
3
- import { extractImports , analyze } from './analyze' ;
4
-
5
3
import { parse } from 'meriyah' ;
6
4
7
- export const babelParse = ( code : string ) => parse ( code , { module : true , jsx : true } ) ;
5
+ import { extractImports , analyze } from './analyze' ;
6
+
7
+ export const estreeParse = ( code : string ) => parse ( code , { module : true , jsx : true } ) ;
8
8
9
9
describe ( 'extractImports' , ( ) => {
10
10
it ( 'single block' , ( ) => {
11
- const ast = babelParse ( dedent `
11
+ const ast = estreeParse ( dedent `
12
12
import { Meta } from '@storybook/blocks';
13
13
import * as ButtonStories from './Button.stories';
14
14
` ) ;
@@ -21,7 +21,7 @@ describe('extractImports', () => {
21
21
} ) ;
22
22
23
23
it ( 'multiple blocks' , ( ) => {
24
- const ast = babelParse ( dedent `
24
+ const ast = estreeParse ( dedent `
25
25
import { Meta } from '@storybook/blocks';
26
26
27
27
import * as ButtonStories from './Button.stories';
You can’t perform that action at this time.
0 commit comments