react-component / react-component/select
Snapshot uuid issues
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 938
- Forks
- 482
- Avg merge
- 15h 8m
- Merged PRs (30d)
- 2
Description
Our test NODE_ENV is set to production. So our snapshots are failing each time as uuid generation is time based. Is there a way we could do this differently?
Contributor guide
No contributing guide indexed for this repository
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
Start by reading the UUID-related code at src/Select.tsx#L287 and src/util.ts#L194, then run the snapshot tests with NODE_ENV=production to reproduce the failures. The work is done when the snapshots no longer vary between runs and the relevant tests pass consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend, testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100