Skip to content

Commit 44d8e35

Browse files
committed
refactor: wip
1 parent c42051d commit 44d8e35

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

packages/utils/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@
3737
"simple-git": "^3.20.0",
3838
"string-width": "^8.1.0",
3939
"wrap-ansi": "^9.0.2",
40-
"zod": "^4.2.1"
40+
"zod": "^4.2.1",
41+
"jiti": "^2.4.2",
42+
"typescript": "5.7.3"
4143
},
4244
"peerDependencies": {
4345
"@nx/devkit": ">=17.0.0"

testing/test-setup/src/lib/jiti.int-setup.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { beforeEach, vi } from 'vitest';
2+
import type { ImportModuleOptions } from '@code-pushup/utils';
23

34
// Integration test setup - disable jiti caching to avoid stale module resolution
45
vi.mock('@code-pushup/utils', async () => {
@@ -9,14 +10,13 @@ vi.mock('@code-pushup/utils', async () => {
910

1011
return {
1112
...utils,
12-
importModule: async (options: any) => {
13+
importModule: async (options: ImportModuleOptions) =>
1314
// Disable caching in integration tests
14-
return utils.importModule({
15+
utils.importModule({
1516
...options,
1617
fsCache: false,
1718
moduleCache: false,
18-
});
19-
},
19+
}),
2020
};
2121
});
2222

0 commit comments

Comments
 (0)