Skip to content

Commit a72afd8

Browse files
author
null
committed
try this
1 parent e2597c8 commit a72afd8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/compile.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { test } from "vitest";
2-
import compile from "../src/compile.js";
2+
import * as typst from "../src/index.ts"
33

44
test("compile example.typ", async () => {
5-
await compile(
6-
import.meta.resolve("./example.typ"),
7-
import.meta.resolve("./example.pdf"),
5+
await typst.compile(
6+
new URL("./example.typ", import.meta.url),
7+
new URL("./example.pdf", import.meta.url),
88
);
99
});

0 commit comments

Comments
 (0)