fix: Fix uuid during testing
How about fixing the UUID by referring to NODE_ENV?
In my test environment, import rc-dialog only once (via antd), so the snapshot test will show the difference.
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/react-component/dialog/82aAcdjVNct2a4Kk24JeftJnGx2b
✅ Preview: https://dialog-git-fork-hedrall-feature-fix-uuid-ff71f9-react-component.vercel.app
Codecov Report
Merging #282 (c9eec35) into master (65f1f8c) will decrease coverage by
1.21%. The diff coverage is100.00%.
@@ Coverage Diff @@
## master #282 +/- ##
==========================================
- Coverage 98.12% 96.91% -1.22%
==========================================
Files 6 6
Lines 160 162 +2
Branches 47 48 +1
==========================================
Hits 157 157
- Misses 2 4 +2
Partials 1 1
| Impacted Files | Coverage Δ | |
|---|---|---|
| src/util.ts | 92.85% <100.00%> (-7.15%) |
:arrow_down: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update 65f1f8c...c9eec35. Read the comment docs.