Skip to content

Commit 81d4f30

Browse files
committed
fix ut
1 parent 946cf9c commit 81d4f30

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/ts/test/core/precompile.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { projectRoot } from "../../../../src/utils/projectRoot.js";
44

55
test("listFunction transform", async () => {
66
const transformFunction = join(projectRoot, "transform", "listFunctions.mjs");
7-
const unittestPackages = await precompile(["tests/ts/fixture/transformFunction.ts"], [], [], transformFunction);
7+
const unittestPackages = await precompile(["tests/ts/fixture/transformFunction.ts"], [], [], "", transformFunction);
88
expect(unittestPackages.testCodePaths).toEqual([]);
99
expect(unittestPackages.sourceFunctions).toMatchSnapshot();
1010
});

tests/ts/test/core/throwError.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ test("transform error", async () => {
2020
const transformFunction = join(projectRoot, "transform", "listFunctions.mjs");
2121
expect(jest.isMockFunction(main)).toBeTruthy();
2222
await expect(async () => {
23-
await precompile(["tests/ts/fixture/transformFunction.ts"], [], [], transformFunction);
23+
await precompile(["tests/ts/fixture/transformFunction.ts"], [], [], "", transformFunction);
2424
}).rejects.toThrow("mock asc.main() error");
2525
});
2626

0 commit comments

Comments
 (0)