Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
cuddlecake
on Oct 18, 2021
|
parent
|
context
|
favorite
| on:
MacBook Pro 14-inch and MacBook Pro 16-inch
webpack is usually fast enough, jest is where I need CPU & RAM.
If I were to write tests, that is.
Oddskar
on Oct 18, 2021
[–]
Pro tip: if you can switch some tests from using JSDOM to Node as the test environment they will run significantly faster.
cuddlecake
on Oct 18, 2021
|
parent
[–]
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
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
If I were to write tests, that is.