deno-musings/junk/module_inspector.test.ts
2024-10-10 10:01:12 -04:00

24 lines
484 B
TypeScript

import * as Inspector from "./module_inspector.ts";
Deno.test("check string parsing", ()=>{
const [local, global] = Inspector.Exports(`
// export in comment
/**
*
* export const TESTtt
* /
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);
})