chore: Fix types in tests 38/N.

This commit is contained in:
cpojer
2026-02-17 15:47:23 +09:00
parent 238718c1d8
commit 084e39b519
19 changed files with 85 additions and 40 deletions

View File

@@ -126,7 +126,8 @@ function createErrnoError(code: string) {
}
function mockWorkspaceStateRead(params: { onboardingCompletedAt?: string; errorCode?: string }) {
mocks.fsReadFile.mockImplementation(async (filePath: string | URL | number) => {
mocks.fsReadFile.mockImplementation(async (...args: unknown[]) => {
const filePath = args[0];
if (String(filePath).endsWith("workspace-state.json")) {
if (params.errorCode) {
throw createErrnoError(params.errorCode);