Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cli/src/commands/app/check.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ describe("data app contract", () => {
join(directory, "src/operations.ts"),
"export const operations = { totals: { checks: [], input: () => ({}), output: (value: unknown) => value, run: async () => ({}), policy: { maxQueryRows: 1, maxDurationMs: 1000 } } };",
);
await expect(checkAppProject(directory)).rejects.toThrow("Data app validation failed.");
const missingChecksFailure = await checkAppProject(directory).catch((error: unknown) => error);
expect(missingChecksFailure).toMatchObject({ message: "Data app validation failed." });
writeFileSync(
join(directory, "src/operations.ts"),
"export const operations = { totals: { checks: [{}], input: () => ({}), output: (value: unknown) => value, run: async () => ({}), policy: { maxQueryRows: 1, maxDurationMs: 1000 } } };",
Expand Down