Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual tests run from Storybook fail if chromatic.config.json contains $schema #341

Open
unekinn opened this issue Oct 8, 2024 · 0 comments

Comments

@unekinn
Copy link

unekinn commented Oct 8, 2024

Describe the bug

Running tests from the "Visual tests" pane in Storybook fails if the $schema property is added to the configuration file. Tests run through the CLI and in CI still work.

The error message is:

✖ Configuration file chromatic.config.json was invalid, please check the allowed keys.

- Unrecognized key(s) in object: '$schema'

To reproduce

Add

  "$schema": "https://www.chromatic.com/config-file.schema.json",

to chromatic.config.json

Run a test from Storybook

Environment

{
  "timestamp": "2024-10-08T13:17:44.576Z",
  "sessionId": "71cecb14-7815-476a-b039-08d1b3623b05",
  "nodePlatform": "darwin",
  "nodeVersion": "20.12.1",
  "packageName": "chromatic",
  "packageVersion": "11.5.3",
  "flags": {
    "interactive": false
  },
  "errorType": "Error",
  "errorMessage": "✖ Configuration file chromatic.config.json was invalid, please check the allowed keys."
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant