Super-fast alternative for babel-jest or ts-jest without type checking. Please use main repository for issues
758
stars
37
forks
source link
jest.spyOn(React, 'useEffect').mockImplementation(f => f()); does not invoke the useEffect hook #126
Closed
jbizkit closed 2 years ago
This works when using
ts-jest
. But once I moved to@swc/jest
it does not work.I'm using TypeScript 4.3.2, jest 29.1.2, @swc/core 1.3.4, @swc/jest 0.2.23, react 16.8.6, enzyme 3.11.0
TestBadge.tsx
TestBadge.test.tsx
This fails.