Skip to content

CI doesn't validate tests using updated schema #4816

@MariaSolOs

Description

@MariaSolOs

Area with issue?

Build server

✔️ Expected Behavior

In #4815 I had added a test to check that catalog: null was valid, but then node ./cli.js check would complain about the type of catalog having to be an object:

>> Failed to validate file "src/test/pnpm-workspace/pnpm-workspace2.yaml" against schema file "./src/schemas/json/pnpm-workspace.json"
>> Showing first error out of 1 total error(s)
{
  instancePath: '/catalog',
  schemaPath: '#/definitions/dependency/type',
  keyword: 'type',
  params: { type: 'object' },
  message: 'must be object'
}

However there would be no errors when opening the test files in my editor.

❌ Actual Behavior

For the tests to use the schema present in the respective commit.

JSON, YAML, or TOML file that does not work.

No response

IDE or code editor.

None

Are you making a PR for this?

No, someone else must create the PR.

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