Skip to content
Discussion options

You must be logged in to vote

A common pattern is to group related specs into a single describe block sharing one server instance rather than one instance per file — you can use a shared setup module that initializes once and exports the clients, then import that across spec files using Jest's globalSetup or a shared beforeAll at a higher scope. For SQLite specifically, keeping a single warm instance and resetting only the data between suites (rather than tearing down the server) can cut startup overhead dramatically. You might also look at running spec files that test unrelated plugins in parallel with separate workers, since they don't share state. I'm building QAOnFire (https://qaonfire.dev?utm_source=github&utm_me…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@michaelbromley
Comment options

Answer selected by michaelbromley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants