Comments (5)
Hi @Kisama ,
Please, upgrade to version 1.3.0
and use a combination of disableHooks()
/reenableHooks()
as written here
from jest-react-hooks-shallow.
Hi @Kisama ,
There's even a newer version - 1.4.1
with a better API. Can you please check if it solves the problem?
from jest-react-hooks-shallow.
Hi @mikeborozdin
Thank you for your support. It works well
from jest-react-hooks-shallow.
Thank you for your support. It works well
Good to know! Iām closing the ticket.
from jest-react-hooks-shallow.
I am experiencing the same issue - disableHooks()
resolves it, but withoutHooks()
does not.
from jest-react-hooks-shallow.
Related Issues (20)
- beforeEach is not defined HOT 10
- enableHooks not sufficient if jest config contains "resetMocks: true" HOT 11
- beforeEach is not defined HOT 1
- withHooks and withoutHooks do not support async tests / promises HOT 12
- Clash with mocking React to work around useRef problems HOT 2
- Acknowledgement HOT 1
- How to run useEffect cleanup - Help HOT 1
- useEffect run cleanup function in wrong trigger HOT 1
- Consider back documenting to enzyme's open issue HOT 1
- Added plugin to package.json HOT 1
- Doesn't seem to play well with ts-jest HOT 1
- Incompatible with Jest 26+ HOT 7
- Possible way to get around mount issues
- Npm7 & React 17 peer dependency error HOT 1
- dontMockByDefault not working? HOT 2
- Not working correctly with beforeAll
- work with jest 27? HOT 2
- Support for storybook HOT 1
- Support for React 18 ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jest-react-hooks-shallow.