FujoWebDev / AO3.js

NodeJS API for scraping AO3 data
MIT License
15 stars 8 forks source link

tags.test.ts takes over 30 seconds #13

Closed cyrusae closed 2 years ago

cyrusae commented 2 years ago

Mentioned in Discord but figured documenting it as an issue on here as well would be a good habit to get into.

This is consistent every time I run it; how far over 30s varies (e.g. 35s, 37s) but it's dramatic enough for yarn to be pointing it out (and to make --watch miss changes that happen while it's still trying to run the previous round of tests).

essential-randomness commented 2 years ago

As discussed on Discord, switching to using msw for tests should help with this: https://mswjs.io/

essential-randomness commented 2 years ago

Closed by #19