Replies: 4 comments 2 replies
-
I get the same error when I try to use component testing. TypeError: Cannot redefine property: Symbol($$jest-matchers-object) I just set it up and run the test that is in the guideline |
Beta Was this translation helpful? Give feedback.
-
I had the same issue. My problem was that in the playwright-ct.config.ts file there is testDir property. You have to change the path where your tests are located. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I have the same issue in a project with both:
Inside the
playwright.config.ts
The issue appears to be that playwright is running both files:
If I comment out the vitest unit tests it runs fine.
and vitest.config.ts also needed updating:
|
Beta Was this translation helpful? Give feedback.
-
I'm using playwright with vitest to test my sveltekit application. I'm attempting to test a post request that is sent from one of the api endpoints via axios
I have attempted the following all with the same error.
The error I keep getting is
TypeError: Cannot redefine property: Symbol($$jest-matchers-object)
Has anyone ever seen this before?
Beta Was this translation helpful? Give feedback.
All reactions