-
Notifications
You must be signed in to change notification settings - Fork 5
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
undefined class names #8
Comments
Found a solution after lots of searching keyz/identity-obj-proxy#9 (comment) |
Fixed... no need to do a postinstall. ts-jest uses it's own tsconfig.json defined within this package. Ref: |
Hey @andrewconnell
|
Good catch... missed a commit of one of my changes. Fixed now... The issue was that ts-jest wasn't configured to use the TypeScript config file within the preset... it was defaulting to the project's tsconfig.json. ref 9c48e13 |
Thanks! |
Current situation
consider the following repro
/src/webparts/helloWorld/compnents/HelloWorld.test.tsx
npm test
the snapshot file will look something like that
notice the absence of classes on elements.
this is problematic if I want the value "amazing" of the description as I can't write precise selectors and need to implement counting instead. This translates into flaky tests if you have complex components that display or not some elements based on some conditions.
Desired situation
the classes to be present so we can leverage selectors properly and implement stable unit tests.
Environment
Windows 10
node 10.16.0
jest 24.9.0
Thanks for the help!
The text was updated successfully, but these errors were encountered: