All files / apps/web/src/entry prelude.tsx

100% Statements 2/2
50% Branches 1/2
100% Functions 0/0
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13                6x   6x    
// Playwright image is served with node.js v24 at the moment, remove when upgraded to v26
// See https://github.com/microsoft/playwright/blob/main/utils/docker/Dockerfile.jammy#L7
import "~utils/temporal-polyfill";
 
// `react-native-reanimated` uses `global.__some_var` expression
// Bundling this in Vite results in `self.__some_var` expression in SSR
// A simple way to mitigate this problem is to override global `self` in globalThis
// oxlint-disable-next-line typescript/no-unnecessary-condition
Eif (globalThis.self === undefined) {
	// oxlint-disable-next-line typescript/no-explicit-any typescript/no-unsafe-member-access
	(globalThis as any).self = globalThis;
}