Skip to content

Commit aefcdf0

Browse files
committed
Naming
1 parent f2a8cc2 commit aefcdf0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/analyze.test.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { describe, it, expect } from 'vitest';
22
import { dedent } from 'ts-dedent';
3-
import { extractImports, analyze } from './analyze';
4-
53
import { parse } from 'meriyah';
64

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 });
88

99
describe('extractImports', () => {
1010
it('single block', () => {
11-
const ast = babelParse(dedent`
11+
const ast = estreeParse(dedent`
1212
import { Meta } from '@storybook/blocks';
1313
import * as ButtonStories from './Button.stories';
1414
`);
@@ -21,7 +21,7 @@ describe('extractImports', () => {
2121
});
2222

2323
it('multiple blocks', () => {
24-
const ast = babelParse(dedent`
24+
const ast = estreeParse(dedent`
2525
import { Meta } from '@storybook/blocks';
2626
2727
import * as ButtonStories from './Button.stories';

0 commit comments

Comments
 (0)