Closed damianobarbati closed 1 year ago
Hey @damianobarbati
This test environment is disconnected from the browser. So if you mock the test environment, it will not have any effect on your JS application that runs within the browser. You would need to get the mocking into the JS environment that runs within the browser.
Hey @10xSebastian , I'm using vitest (same as jest) to control playwright but it's not clear to me where I should put the mock logic.
In my
vitest.setup.ts
:In my spec: