microsoft / microsoft/react-native-gallery

Updating test snapshots has differences in `timeZoneOffsetInSeconds` between local test and CI tests

Open
#441 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.