mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 02:48:50 +00:00
14 lines
389 B
TypeScript
14 lines
389 B
TypeScript
import t3 from "./a.txt" with { type: "file" };
|
|
import t1 from "./a.txt?1" with { type: "file" };
|
|
import t2 from "./a.txt?2";
|
|
import w1 from "./a.wasm?1";
|
|
import w2 from "./a.wasm?2";
|
|
|
|
test("question mark imports", () => {
|
|
expect(t1).toEndWith("a.txt");
|
|
expect(t2).toBe("hello");
|
|
expect(t3).toEndWith("a.txt");
|
|
expect(w1).toEndWith("a.wasm");
|
|
expect(w2).toEndWith("a.wasm");
|
|
});
|