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
If I were to write tests, that is.