We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2597c8 commit a72afd8Copy full SHA for a72afd8
test/compile.test.ts
@@ -1,9 +1,9 @@
1
import { test } from "vitest";
2
-import compile from "../src/compile.js";
+import * as typst from "../src/index.ts"
3
4
test("compile example.typ", async () => {
5
- await compile(
6
- import.meta.resolve("./example.typ"),
7
- import.meta.resolve("./example.pdf"),
+ await typst.compile(
+ new URL("./example.typ", import.meta.url),
+ new URL("./example.pdf", import.meta.url),
8
);
9
});
0 commit comments