Skip to content

Many tests failing #832

@BrendanC23

Description

@BrendanC23

I tried to run the tests with bun run test and ran into several issues. Initially, the tests would not run and Bun showed "No test files found, exiting with code 1". This was fixed by removing '/\\.' from the vitest.config.ts.

Once I got the tests running, I noticed that many are failing. Here's the output:

Test Files 17 failed | 49 passed
Tests 44 failed | 213 passed

FAIL  arktype/src/__tests__/arktype.ts > arktypeResolver > should return a single error from arktypeResolver when validation fails
Error: Snapshot `arktypeResolver > should return a single error from arktypeResolver when validation fails 1` mismatched

- Expected
+ Received

  {
    "errors": {
      "accessToken": {
        "message": "accessToken must be a number or a string (was missing)",
        "ref": undefined,
-       "type": "required",
+       "type": "",
      },
      "birthYear": {
        "message": "birthYear must be a number (was a string)",
        "ref": undefined,
-       "type": "domain",
+       "type": "",
      },
...

This PR changed the GitHub workflow to no longer run the tests in CI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions