Skip to content

Instantly share code, notes, and snippets.

View thiagomini's full-sized avatar
🏠
Working from home

Thiago Valentim thiagomini

🏠
Working from home
View GitHub Profile
import z from 'zod';
const bookingSchema = z.object({
id: z.string(),
checkIn: z.date(),
checkOut: z.date(),
status: z.enum(['pendind', 'confirmed', 'cancelled'])
// ...
});
@thiagomini
thiagomini / pillars-of-automated-test.quiz01.spec.ts
Created October 6, 2025 12:47
Quiz 01 - Good and Bad automated Tests
test('test1', () => {
const a = new BankAccount(100);
let x = 0;
for (let i = 0; i < 1; i++) {
x = a.withdraw(40);
}
expect(x).toBe(60);
});