Skip to content

Commit 5a1cb9e

Browse files
committed
fix
1 parent ed83bf9 commit 5a1cb9e

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/core/precompile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export async function precompile(
3030
});
3131
}
3232
const regexPattern = new RegExp(testNamePattern);
33-
for (const [fileName, testNames] of testNameInfos) {
33+
for (const testNames of testNameInfos.values()) {
3434
for (const testName of testNames) {
3535
if (regexPattern.test(testName)) {
3636
matchedTestNames.push(testName);

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
import { join } from "node:path";
21
import { precompile } from "../../../../src/core/precompile.js";
3-
import { projectRoot } from "../../../../src/utils/projectRoot.js";
42

53
test("listFunction transform", async () => {
6-
const transformFunction = join(projectRoot, "transform", "listFunctions.mjs");
7-
const unittestPackages = await precompile(["tests/ts/fixture/transformFunction.ts"], [], [], "", transformFunction);
4+
const unittestPackages = await precompile(["tests/ts/fixture/transformFunction.ts"], [], undefined, undefined, "");
85
expect(unittestPackages.testCodePaths).toEqual([]);
96
expect(unittestPackages.sourceFunctions).toMatchSnapshot();
107
});

0 commit comments

Comments
 (0)