mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
13 lines
333 B
TypeScript
13 lines
333 B
TypeScript
import { assertType, describe, it } from 'vitest';
|
|
|
|
import type { Statement } from '../index';
|
|
import { parseSync } from '../index';
|
|
|
|
describe('parse', () => {
|
|
const code = '/* comment */ foo';
|
|
|
|
it('checks type', async () => {
|
|
const ret = parseSync('test.js', code);
|
|
assertType<Statement>(ret.program.body[0]);
|
|
});
|
|
});
|