Closed amortemousque closed 1 week ago
📦 Bundle Name | Base Size | Local Size | 𝚫 | 𝚫% | Status |
---|---|---|---|---|---|
Rum | 160.50 KiB | 160.50 KiB | 0 B | 0.00% | ✅ |
Logs | 58.09 KiB | 58.09 KiB | 0 B | 0.00% | ✅ |
Rum Slim | 109.02 KiB | 109.02 KiB | 0 B | 0.00% | ✅ |
Worker | 25.21 KiB | 25.21 KiB | 0 B | 0.00% | ✅ |
Motivation
Our tests require to mock native APIs, we sometimes calls them
stub
ormock
without a clear understanding of the different (ex: stubStorage.ts, mockLocation.ts).This PR harmonize the namings of mocks for every test helper located in test/emulate
Changes
Rename:
Split:
test/requests.ts
=>test/emulate/mockFetch.ts
,test/emulate/mockXhr.ts
andtest/interceptRequests.ts
Testing
I have gone over the contributing documentation.