Back to results
newswim/zod-workshop(opens in a new tab)
Language: TypeScript
A test-driven intro to Zod
- stars
- 0
- watchers
- 1
- forks
- 2
- open issues
- 0
- Last updated
- 09/19/2024
Language: TypeScript
A test-driven intro to Zod
This project contains broken test suite and it's your job to fix them.
You're expected to use Zod's documentation, the project's github page, and/or intuition to create schemas which will make each test green.
You should not have to change the content of any tests. But, feel free to explore the Zod API and create additional test cases if you wish.
Reading the test cases is a great way to get clues about what to write, especially if a custom error message is expected.
And as always, please do not use .any -- thanks!
/tests folder and start with the 01-basic-types file.npm run test and change a test or source code to see HMR in action!npm run test:ui to see the very fancy Vitest UI app. (optional)describe.skip(), remove .skip() to start seeing test failures./solutions folder unless you are absolutely
stuck.More info about the test runner, check out https://vitest.dev