-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example in monorepo works, can't get it too work on my own project or clean vite install. #38
Comments
Hi @herrKlein, thanks for reporting. I'll look into it. Does an older version of the lib work? |
I tried it with version 39.0. Produces the same error. |
+1 |
A temporary workaround is to give the components which are imported in a test file a suffix e.g., change This issue has to be resolved first: |
Should be fixed in the latest version. Feel free to create a new issue otherwise |
Would love to use this to unit test my lit components.
I first tried it on my own project by initializing this
npm init playwright-sand4rt@latest -- --ct
I create the example
Button.ts
andButton.test.ts
,first error was:
Error: Unsupported decorator location: field
Solved this by adding accessor
It compiled, but next was this error:
I then downloaded
playwright-ct-web
to test thect-web-lit
exampled.This ran correctly inside the monorepo
I tried moving the ct-web-lit outside the monorep,
replaced this line:
To have a standalone working version, this failed due to this error:
I also created a clean vite-lit repo, installed your testing lib:
npm init playwright-sand4rt@latest -- --ct
Copied the button example and test of the readme, got almost the same error:
I would really like this to work, to unit test my lit components in playwright.
Could you shed some light why your ct-web-lit is working in the monorepo, but I can't get any test to work with the initialize
The text was updated successfully, but these errors were encountered: