All files / apps/web/src/hooks use-hydrated-mark.ts

83.33% Statements 5/6
25% Branches 1/4
100% Functions 2/2
83.33% Lines 5/6

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    332x 1666x 326x     326x 326x        
import { useMountEffect } from "~app/hooks/use-mount-effect";
 
export const useHydratedMark = () => {
	useMountEffect(() => {
		if (import.meta.env.MODE !== "test") {
			return;
		}
		Eif (!document.querySelector("hydrated")) {
			document.body.append(document.createElement("hydrated"));
		}
	});
};