diff --git a/paseri-lib/src/schemas/safe-parse.ts b/paseri-lib/src/schemas/safe-parse.test.ts similarity index 95% rename from paseri-lib/src/schemas/safe-parse.ts rename to paseri-lib/src/schemas/safe-parse.test.ts index bf3eaec..b115907 100644 --- a/paseri-lib/src/schemas/safe-parse.ts +++ b/paseri-lib/src/schemas/safe-parse.test.ts @@ -19,7 +19,7 @@ test('Failure', () => { const schema = p.string(); const result = schema.safeParse(123); if (!result.ok) { - expect(result.issue).toEqual({ type: 'leaf', code: 'invalid_type' }); + expect(result.issue).toEqual({ type: 'leaf', code: 'invalid_type', expected: 'string' }); } else { expect(result.ok).toBeFalsy(); }