deno-musings/junk/module_inspector.test.ts

26 lines
494 B
TypeScript
Raw Permalink Normal View History

2024-10-10 10:00:12 -04:00
import * as Inspector from "./module_inspector.ts";
2024-10-11 13:04:47 -04:00
console.log();
2024-10-10 10:00:12 -04:00
Deno.test("check string parsing", ()=>{
const [local, global] = Inspector.Exports(`
// export in comment
/**
*
2024-10-11 13:04:47 -04:00
* export const
2024-10-10 10:00:12 -04:00
* /
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);
})