-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Stefan Terdell
committed
Nov 15, 2023
1 parent
b8f2ac7
commit 9991411
Showing
32 changed files
with
2,405 additions
and
8,083 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,27 @@ | ||
import { readdirSync, writeFileSync, statSync } from "fs" | ||
|
||
function checkDir(dir: string): string[] { | ||
return readdirSync(dir).reduce((a: string[], n) => { | ||
const f = `${dir}/${n}` | ||
|
||
const s = statSync(f) | ||
|
||
if (s.isFile() && n.endsWith(".test.ts")) { | ||
a.push(f) | ||
} | ||
|
||
if (s.isDirectory()) { | ||
a.push(...checkDir(f)) | ||
} | ||
|
||
return a | ||
}, []) | ||
} | ||
|
||
writeFileSync( | ||
"./test/index.ts", | ||
checkDir("./test") | ||
.map((f) => `import "./${f.slice(7, -3)}.js"`) | ||
.join("\n"), | ||
"utf-8", | ||
) |
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,27 @@ | ||
import "./allParsers.test.js" | ||
import "./meta.test.js" | ||
import "./openApiMode.test.js" | ||
import "./parseDef.test.js" | ||
import "./parsers/array.test.js" | ||
import "./parsers/bigint.test.js" | ||
import "./parsers/branded.test.js" | ||
import "./parsers/date.test.js" | ||
import "./parsers/default.test.js" | ||
import "./parsers/effects.test.js" | ||
import "./parsers/intersection.test.js" | ||
import "./parsers/map.test.js" | ||
import "./parsers/nativeEnum.test.js" | ||
import "./parsers/nullable.test.js" | ||
import "./parsers/number.test.js" | ||
import "./parsers/object.test.js" | ||
import "./parsers/optional.test.js" | ||
import "./parsers/pipe.test.js" | ||
import "./parsers/promise.test.js" | ||
import "./parsers/record.test.js" | ||
import "./parsers/set.test.js" | ||
import "./parsers/string.test.js" | ||
import "./parsers/tuple.test.js" | ||
import "./parsers/union.test.js" | ||
import "./readme.test.js" | ||
import "./references.test.js" | ||
import "./zodToJsonSchema.test.js" |
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
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
Oops, something went wrong.