-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
Update to be compatible with Cypress 10 #252
Comments
This seems to work okay - #254 cc @jaredpalmer If it doesn't get merged I'll publish it on npm as a fork Edit: You can grab it here - https://www.npmjs.com/package/@simonsmith/cypress-image-snapshot |
I notice one Issue connected with cypress snapshot, the default snapshot directory is different when I run all spec by cypress run command, but when I want just update one spec file and use command cypress run --spec |
@lruszlewicz Different how? |
|
It does seem like this behaviour is intentional from the Cypress side in version 10 - https://docs.cypress.io/guides/references/migration-guide#Generated-Files |
First of all thank you for your work on this. But I come up with this error after I add this package to the config file in a TypeScript project. Any idea? EDIT: |
@simonsmith have you found a workaround for the open/run screenshot file location issue? |
I opened a PR to fix this: simonsmith/cypress-image-snapshot#1 |
@wilsonpage By using this script, you can make snapshots be stored in same directory when you use |
Thanks! Merged and in |
Hi, I can not create an issue in your fork, so I will write here.
|
@simonsmith any chance to update to Cypress 11? |
@jcubic What have you encountered that is breaking in Cypress 11? I'm yet to update my projects but when I do I can fix any major pain points |
I have no idea I'm not able to install Cypress 11 because of your package. So I'm forced to use Cypress 10 if I want to use image snapshots. |
@jcubic @simonsmith |
@simonsmith I'm coming across one issue with your fork and maybe you can help me with it. Prior to Cypress 10, we were using a custom |
As a workaround, just add this overrides block to your package.json: "devDependencies": {
"@simonsmith/cypress-image-snapshot": "^6.0.0",
},
"overrides": {
"@simonsmith/cypress-image-snapshot": {
"cypress": "^11.1.0"
}
}, Its working fine here |
@uilton-oliveira thanks, I didn't know you can do that. |
It's on my list to update to Cypress 11 for my own projects, once I do I'll update the fork. Thanks for the workaround for now @uilton-oliveira |
Additional information: If someone wants to use the cypress-image-snapshot types, they should add:
|
@simonsmith I've created a small PR to update the README with @rojasss11's type fix: simonsmith/cypress-image-snapshot#8 Are we considering moving to this new repo as it seems to be the most active?! |
@willwearing you can also see my fork and PR, I think we can create a discord channel for it, and if we want to create a new package with TS support or continue with some fork. |
@sosog lets wait to see what @simonsmith says and if @jaredpalmer weighs in. Discord might not be needed if we can get ownership of the repo transferred and/or we agree to move to Simons ford etc |
I am in the middle of a rewrite of cypress-image-snapshot at the moment. I will replace my fork with it once it's ready. Thanks for all your continued help! |
Removed my fork and recreated as standalone Have a few more bits to add/test and then will release a new version |
Hi, @simonsmith. |
Right now it currently supports Seen here - https://github.com/americanexpress/jest-image-snapshot#%EF%B8%8F-api |
Hi @simonsmith, I tried installing @simonsmith/cypresss-image-snapshot and it seems to support only js. Is there any plan to publish your typescript work on npm anytime soon? |
@abf7d Yep, I am currently working out some issues with getting semantic-release to work correctly. I am also going to be testing the new version on a work project with hundreds of tests to ensure everything works there also. I'd like the next release to work smoothly for everyone As a temporary workaround you can see this comment I think - #252 (comment) |
Thanks @simonsmith ! |
It worked well for me, so here is version 7.0.0 - https://github.com/simonsmith/cypress-image-snapshot/releases/tag/7.0.0 |
Update to use maintained for of 'cypress-image-snapshot' plugin and update to Cypress v10 See: jaredpalmer/cypress-image-snapshot#252 (comment)
Hello 👋 I'm writing on behalf of the Cypress DX team. We wanted to notify you that some changes may need to be made to this plugin to ensure that it works in Cypress 10.
For more information, here is our official plugin update guide.
The text was updated successfully, but these errors were encountered: