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

Setup image snapshot testing #254

Merged
merged 3 commits into from
Dec 15, 2023
Merged

Conversation

mauriciopoppe
Copy link
Owner

I'm using:

Setup:

  • Update jest config to use the preset jest-pupeteer`

On npm run test:

  • jest-puppeteer will start the webpack-dev-server
  • jest will run the new tests in test/e2e
  • puppeteer will spawn a browser and navigate to a playground page, run a JS string which creates the plot
  • puppeteer takes an image snapshot
  • just-image-snapshot checks that the snapshot matches what's stored in disk

@mauriciopoppe mauriciopoppe force-pushed the export-register-graph-type branch from 372ba30 to e8606d6 Compare December 15, 2023 04:57
@mauriciopoppe mauriciopoppe force-pushed the export-register-graph-type branch 5 times, most recently from e6b26b3 to d0efbfc Compare December 15, 2023 06:46
@mauriciopoppe mauriciopoppe force-pushed the export-register-graph-type branch from d0efbfc to 019e345 Compare December 15, 2023 06:49
@mauriciopoppe mauriciopoppe merged commit ca9f662 into master Dec 15, 2023
7 checks passed
@mauriciopoppe mauriciopoppe deleted the export-register-graph-type branch December 15, 2023 06:51
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

Successfully merging this pull request may close these issues.

1 participant