-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4460c33
commit 26acdc7
Showing
10 changed files
with
741 additions
and
171 deletions.
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
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,30 @@ | ||
import { z } from 'zod' | ||
|
||
export const NodeTestSchema = z | ||
.object({ | ||
concurrency: z | ||
.number() | ||
.int() | ||
.or(z.boolean()) | ||
.default(false) | ||
.describe('The number of tests to run in parallel. See https://nodejs.org/api/test.html#runoptions'), | ||
files: z | ||
.string() | ||
.array() | ||
.optional() | ||
.describe('The glob patterns for test files'), | ||
ignore: z | ||
.string() | ||
.array() | ||
.default([]) | ||
.describe('Glob patterns for test files to ignore'), | ||
forceExit: z | ||
.boolean() | ||
.default(false) | ||
.describe('Whether to force exit the process once all tests have finished executing') | ||
}) | ||
.describe('Runs the built-in Node.js test runner to execute tests.') | ||
|
||
export type NodeTestOptions = z.infer<typeof NodeTestSchema> | ||
|
||
export const Schema = NodeTestSchema |
Oops, something went wrong.