You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the following test: expect(alignCenter.find('.card-item-tooltip').hasClass(/(left|right)/)).toBeFalsy();
It works fine and pass when running locally (macOS, node 12).
On jenkins when running the tests (linux, node12) this test fails with TypeError: className.indexOf is not a function.
Expected behavior
Same output locally and on jenkins
Your environment
Local: macOS, node 12
Jenkins: linux, node 12
API
shallow
mount
render
Version
library
version
enzyme
"^3.9.0"
react
"^16.8.6"
react-dom
"^16.8.6"
react-test-renderer
"^16.8.6"
adapter (below)
"^1.11.2"
Adapter
enzyme-adapter-react-16
enzyme-adapter-react-16.3
enzyme-adapter-react-16.2
enzyme-adapter-react-16.1
enzyme-adapter-react-15
enzyme-adapter-react-15.4
enzyme-adapter-react-14
enzyme-adapter-react-13
enzyme-adapter-react-helper
others ( )
The text was updated successfully, but these errors were encountered:
The implication is that you're not installing the same versions of enzyme and enzyme things in those two places; this was an issue that was fixed in #2057 and released in v3.10.0 of enzyme.
In other words, this is a duplicate of #2057, and you can fix it by updating enzyme.
Current behavior
I have the following test:
expect(alignCenter.find('.card-item-tooltip').hasClass(/(left|right)/)).toBeFalsy();
It works fine and pass when running locally (macOS, node 12).
On jenkins when running the tests (linux, node12) this test fails with
TypeError: className.indexOf is not a function
.Expected behavior
Same output locally and on jenkins
Your environment
Local: macOS, node 12
Jenkins: linux, node 12
API
Version
Adapter
The text was updated successfully, but these errors were encountered: