Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tests/jest.setup.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
process.env.NODE_ENV = 'test';
process.env.MONGOMS_DOWNLOAD_PROGRESS = '0';
// Pin the MongoDB binary used by mongodb-memory-server. Without this, the
// default (6.0.x) is downloaded on first run. A value set in the environment
// still takes precedence so CI can override it.
process.env.MONGOMS_VERSION = process.env.MONGOMS_VERSION ?? '7.0.14';
// The env schema requires a >=16 char JWT secret and tests sign tokens with
// this exact value. dotenv does not override real environment variables, so
// this only applies when the runner does not provide a usable secret (a
Expand Down