Re:MacBook Pro 14-inch and MacBook Pro 16-inch
by javajosh on Monday October 18, 2021 @02:12PM
(#28908985)
In general, the people here will use the perf to run webpack faster.
[ Parent
| on HN ]
Re:MacBook Pro 14-inch and MacBook Pro 16-inch
by cuddlecake on Monday October 18, 2021 @03:30PM
(#28910390)
webpack is usually fast enough, jest is where I need CPU & RAM.
If I were to write tests, that is.
Re:MacBook Pro 14-inch and MacBook Pro 16-inch
by Oddskar on Monday October 18, 2021 @03:41PM
(#28910566)
Pro tip: if you can switch some tests from using JSDOM to Node as the test environment they will run significantly faster.
Re:MacBook Pro 14-inch and MacBook Pro 16-inch
by cuddlecake on Monday October 18, 2021 @03:58PM
(#28910785)
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