mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 20:28:58 +00:00
12 lines
333 B
JavaScript
12 lines
333 B
JavaScript
import oxc from './index.js';
|
|
import assert from 'assert';
|
|
|
|
console.log(`Testing on ${process.platform}-${process.arch}`)
|
|
|
|
test(oxc.isolatedDeclaration("test.ts", "class A {}"), "declare class A {}\n");
|
|
|
|
function test(ret, expected) {
|
|
console.log(ret);
|
|
assert.equal(ret.sourceText, expected);
|
|
assert(ret.errors.length == 0);
|
|
}
|