Migrate monorepo to Zod 4

This commit is contained in:
Mohamed Boudra
2026-06-18 15:02:42 +08:00
committed by GitHub
parent de84c8f179
commit df18bbc43a
34 changed files with 5233 additions and 4969 deletions
@@ -33,6 +33,34 @@ describe("paseo config schema", () => {
});
});
it("normalizes partial worktree lifecycle config without dropping present commands", () => {
expect(
PaseoConfigSchema.parse({
worktree: {
setup: 'echo "setup ran" > setup.log',
},
}),
).toEqual({
worktree: {
setup: ['echo "setup ran" > setup.log'],
teardown: [],
},
});
expect(
PaseoConfigSchema.parse({
worktree: {
teardown: ["npm run clean"],
},
}),
).toEqual({
worktree: {
setup: [],
teardown: ["npm run clean"],
},
});
});
it("parses all metadata generation instruction entries", () => {
expect(
PaseoConfigSchema.parse({