1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
import assert from "assert";
import dedent from "dedent";
import { bundlerTest, expectBundled, itBundled, testForFile } from "./expectBundled";
var { describe, test, expect } = testForFile(import.meta.path);
describe("bundler", () => {
itBundled("edgecase/EmptyFile", {
files: {
"/entry.js": "",
},
});
itBundled("edgecase/ImportStarFunction", {
files: {
"/entry.js": /* js */ `
import * as foo from "./foo.js";
console.log(foo.fn());
`,
"/foo.js": /* js */ `
export function fn() {
return "foo";
}
`,
},
run: { stdout: "foo" },
});
});
|