mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
17 lines
405 B
JavaScript
17 lines
405 B
JavaScript
import { assert, describe, it } from 'vitest';
|
|
|
|
import oxc from './index.js';
|
|
|
|
describe('module lexer', () => {
|
|
const code = 'export { foo }';
|
|
|
|
it('matches output', () => {
|
|
const ret = oxc.moduleLexerSync(code);
|
|
assert(ret.exports.length == 1);
|
|
});
|
|
|
|
it('matches output async ', async () => {
|
|
const ret = await oxc.moduleLexerAsync(code);
|
|
assert(ret.exports.length == 1);
|
|
});
|
|
});
|