Skip to content

Commit bce0e70

Browse files
lopertadampetro
andauthored
Improve input validation with visitor (#26)
* initial implementation of visitor * additional features Co-authored-by: Adam Petro <[email protected]> * additional test fixtures * clean up new files * remove old files, rename new files in their place * remove package-lock, prefer pnpm-lock * move workspaces to pnpm-workspace * comment for isInputType + coerceInputValue on output types. * flattenNestedArrays * missing js-docs * inline data for tests for validateFixtureInput * clean up test fixtures * use it.skip for unsupported test cases * remove `valid` on validation return types. Rely on errors.length instead. * improve comment for flattenNestedArrays * remove redundant continues * use pnpm workspaces for test-app/extensions deps * rework nestedArray traversing to handle nulls. * clean up test * use toHaveLength * better type for processNestedArrays arg value --------- Co-authored-by: Adam Petro <[email protected]>
1 parent 531895f commit bce0e70

40 files changed

+5876
-7272
lines changed

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
public-hoist-pattern[]=*@graphql-codegen/*
2+
public-hoist-pattern[]=graphql-code-generator

dev.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: shopify-function-test-helpers
2+
3+
type:
4+
- node
5+
6+
up:
7+
- node:
8+
version: 24.1.0
9+
package_manager: [email protected]

0 commit comments

Comments
 (0)