Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: navigating the config prompt to ignore
- Loading branch information
Showing
5 changed files
with
91 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ dist | |
build | ||
lib | ||
.vscode | ||
src/cli/fixtures/**/*.zod.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Config Prompt Tests Skip config prompt should have selected the right option and generated the file not in the config 1`] = ` | ||
"? You have multiple configs available in "ts-to-zod.config.js" | ||
What do you want? (Use arrow keys) | ||
❯ Execute all configs (--all) | ||
Execute "example" config (--config=example) | ||
Execute "example/person" config (--config=example/person) | ||
Execute "config" config (--config=config) | ||
Don't use the config ? You have multiple configs available in "ts-to-zod.config.js" | ||
What do you want? | ||
Execute all configs (--all) | ||
Execute "example" config (--config=example) | ||
Execute "example/person" config (--config=example/person) | ||
Execute "config" config (--config=config) | ||
❯ Don't use the config ? You have multiple configs available in "ts-to-zod.config.js" | ||
What do you want? Don't use the config | ||
🎉 Zod schemas generated! | ||
" | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export type Test = { | ||
name: string; | ||
age: number; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Generated by ts-to-zod | ||
import { z } from "zod"; | ||
|
||
export const testSchema = z.object({ | ||
name: z.string(), | ||
age: z.number(), | ||
}); |