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

Undefined in error message if using exact snapshot name #221

Closed
bahmutov opened this issue Mar 20, 2019 · 1 comment
Closed

Undefined in error message if using exact snapshot name #221

bahmutov opened this issue Mar 20, 2019 · 1 comment

Comments

@bahmutov
Copy link
Owner

If using snapshot('foo bar') the error message with CI=1 ... has undefined values

1) cli unknown option shows help:
     Error: Cannot store new snapshot value
in /Users/gleb/git/cypress/cli/test/lib/cli_spec.js
for spec called "undefined"
test key "undefined 0"
when running on CI (opts.ci = 1)
see https://github.com/bahmutov/snap-shot-core/issues/5
      at setOrCheckValue (node_modules/snap-shot-core/src/index.js:238:15)
      at core (node_modules/snap-shot-core/src/index.js:282:12)
      at snapshot (node_modules/snap-shot-it/src/index.js:143:10)
      at execa.then.result (test/lib/cli_spec.js:33:9)
      at <anonymous>
      at process._tickCallback (internal/process/next_tick.js:188:7)
@bahmutov
Copy link
Owner Author

🎉 This issue has been resolved in version 7.1.15 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant