Skip to content

Commit 0c97b51

Browse files
committed
test(web): typecheck the project file refresh test
1 parent 9cd7a04 commit 0c97b51

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/web/src/components/files/projectFilesQueryState.test.tsx renamed to apps/web/src/components/files/projectFilesQueryState.refresh.test.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import {
22
AuthFilesystemReadScope,
33
EnvironmentId,
44
type AuthSessionState,
5+
type ProjectFileFailure,
56
ProjectReadFileError,
67
type ProjectReadFileResult,
78
} from "@t3tools/contracts";
@@ -246,7 +247,7 @@ describe("project query refresh", () => {
246247
it("confirms files from reads and preserves that identity until a definitive folder result", () => {
247248
const contents = file("# readme");
248249
const success = AsyncResult.success(contents);
249-
const failure = (kind: ProjectReadFileError["failure"], cached = false) =>
250+
const failure = (kind: ProjectFileFailure, cached = false) =>
250251
AsyncResult.failure(
251252
Cause.fail(
252253
new ProjectReadFileError({ cwd: "/repo", relativePath: "src/preview.ts", failure: kind }),

0 commit comments

Comments
 (0)