(target: string, path: string)
| 96 | }); |
| 97 | |
| 98 | async function testFile(target: string, path: string): Promise<string> { |
| 99 | const input = `import {FileAttachment} from "observablehq:stdlib";\nFileAttachment(${JSON.stringify(target)})`; |
| 100 | const output = await transpileModule(input, {root: "src", path}); |
| 101 | return output.split("\n").pop()!; |
| 102 | } |
| 103 | |
| 104 | describe("transpileModule(input, root, path, sourcePath)", () => { |
| 105 | it("rewrites relative files with import.meta.resolve", async () => { |
no test coverage detected