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

feat: migrate snapshot files too [LIBS-681] #878

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

KaiVandivier
Copy link
Contributor

@KaiVandivier KaiVandivier commented Oct 2, 2024

LIBS-681

Tested out in the Dashboard app, and the snapshots are indeed use for comparison -- the platform changes seem to have removed white space in some snaps as seen in the second screenshot below, for example.

One potential shortcoming of the script I noticed, however, is that it doesn't update file paths for things like mocked jest modules, resulting in errors like:

 FAIL  src/components/Item/VisualizationItem/__tests__/Item.spec.jsx
  ● Test suite failed to run

    Cannot find module '../../ItemHeader/DeleteItemButton.js' from 'src/components/Item/VisualizationItem/__tests__/Item.spec.jsx'

Screenshots

snap-migration snap-test

@KaiVandivier KaiVandivier requested review from kabaros and a team October 2, 2024 07:56
Copy link
Contributor

@kabaros kabaros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - will you add a ticket for updating jest mocks? or we can just tell people to manually update (it's easily spotted from the error)

@amcgee amcgee merged commit 521f483 into alpha Oct 8, 2024
8 checks passed
@amcgee amcgee deleted the libs-681-migrate-snapshot-files-jsx branch October 8, 2024 11:10
dhis2-bot added a commit that referenced this pull request Oct 8, 2024
# [12.0.0-alpha.16](v12.0.0-alpha.15...v12.0.0-alpha.16) (2024-10-08)

### Features

* create initial TS template ([#868](#868)) ([2795f79](2795f79))
* migrate snap files too ([#878](#878)) ([521f483](521f483))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 12.0.0-alpha.16 🎉

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

Successfully merging this pull request may close these issues.

4 participants