Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
cuddlecake
· 5y ago · 0 comments
webpack is usually fast enough, jest is where I need CPU & RAM.
If I were to write tests, that is.
Comments
[–]
Oddskar
5y ago
Pro tip: if you can switch some tests from using JSDOM to Node as the test environment they will run significantly faster.
[–]
cuddlecake
OP
5y ago
Ah, thanks for the tip. It will probably not change much for the project I currently work on, with tests using react-testing-library, so JSDOM is required in nearly all test files.
But at least now I know :D