Skip to content

Test fixtures #44

@streamich

Description

@streamich

In src/__tests__/ folder add fixtures.ts file with a dozen different realistic schemas for various scenarios. Use the type builder, e.g:

export const User = t.object({
  id: t.str,
  name: t.object({
    first: t.str,
  }).optional({
    last: t.str,
  }),
  // etc..
});

Cover all node types.

Once done, make sure linter and formatter pass.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions