deno-musings/junk/module_inspector.test.ts
2024-10-11 13:04:47 -04:00

26 lines
494 B
TypeScript

import * as Inspector from "./module_inspector.ts";
console.log();
Deno.test("check string parsing", ()=>{
const [local, global] = Inspector.Exports(`
// export in comment
/**
*
* export const
* /
const fakeexport =()=>{};
const exportfake =()=>{};
export * from "react";
export{ thing1 as remapped, thing2}
export{ thing1 as remapped, thing2} from 'React';
export
export default function(){}
export const func=()=>{};
export let func=()=>{};
`)
console.log(local, global);
})