Reza Fatideh
Reza Fatideh
For now, I ended up excluding this rule for playwright files: ```js // eslint.config.mjs export default [ // ... { files: ["playwright/**/*.{js,mjs,cjs,ts,jsx,tsx}"], rules: { "react-hooks/rules-of-hooks": "off" } } ]; ```
To achieve the desired behavior, I used `vi.mock` within the `__mocks__` file: ```js // __mocks__/foo.js vi.mock('../foo.js', async (importOriginal) => { const original = await importOriginal(); return { ...original, bar: vi.fn(()...
For me, with the latest version (2.1.4), it worked