microsoft / microsoft/react-native-gallery
Updating test snapshots has differences in `timeZoneOffsetInSeconds` between local test and CI tests
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- TypeScript
- Stars
- 257
- Forks
- 57
- Avg merge
- 18h 19m
- Merged PRs (30d)
- 10
Description
This means you manually have to revert the timeZoneOffsetInSeconds line from any local run of yarn test:update. We should exclude this single property from the snapshots using the jest functionality for that.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Run yarn test:update to reproduce the snapshot difference and inspect the Jest snapshot configuration used by that command. Exclude timeZoneOffsetInSeconds from generated snapshots, then verify that local and CI-style snapshot updates no longer require manually reverting that line.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript
- Domain
- mobile-dev, testing
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100