Closed chronospatian closed 5 months ago
Workaround for now by adding globalThis.window = globalThis
at the top of playwright-ct.config.ts
I missed that the beforeMount
function needs to go in playwright/index.ts
, not the test file. Closing.
@chronospatian thanks a lot for sharing your feedback
Version: 1.41.2
I'm testing out this library and ran into this error when using
beforeMount
in my component test.Minimal reproduction:
Consider changing
window
toglobalThis
?