react-performance-testing icon indicating copy to clipboard operation
react-performance-testing copied to clipboard

W.setImmediate is not a function

Open BartJanvanAssen opened this issue 4 years ago • 2 comments

Hey Folks,

Was trying out this library but got a strange error, who can help me out?

image

I used like 100% the same test used over here, but then my own component: https://github.com/keiya01/react-performance-testing/blob/master/example/src/list/Item.test.tsx

I have not used the CLI tool, I want to use this with jest with RTL. I've tried the compiler options but got not any improvements on that :-( Im running on tsconfig - target / module: esnext

BartJanvanAssen avatar Oct 29 '21 11:10 BartJanvanAssen

I have the same error using from here code example...

ramory-l avatar Nov 19 '21 13:11 ramory-l

It seems that it has to do with the fact that setImmediate has been removed from the Jest node environment: https://github.com/facebook/jest/pull/11222/files

plobod avatar Feb 12 '22 10:02 plobod