Skip to content

Commit bc1c10d

Browse files
committed
Add performance mock
1 parent 2cdb2a9 commit bc1c10d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// This is a mock of the performance API. It is used to mock the performance API in tests since the tests
2+
// do not run in a browser environment. Feel free to add functionality to this if you need.
3+
window.performance.getEntries = () => []

0 commit comments

Comments
 (0)