-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[REGRESSION]: Wrong enum value when imported from another file #29302
Comments
Playwright is struggling with non-standard file extension. It sounds like you are importing types information only, would it make sense to import types only? import type { ALLOWED_TABS } from "../CreateSignature.types"; |
@pavelfeldman I am importing from
I am actually using the values in the file. So just importing the type won't help in this case. |
@pavelfeldman I am facing similar issues importing constants and other components when running component tests in 1.41.2. I import my component like this
and mount it like
When mounting, for some components I get this.. and tests work fine.
For others I don't get the importRef expression as above.. and the component doesnot mount..which fails the test. PS. All tests work fine in 1.40.1 Could you provide an explaination for failure. |
I am doing react component testing
Context:
Code Snippet
When we define
ALLOWED_TABS
in other file and import it,The text was updated successfully, but these errors were encountered: