Skip to content

Commit 7fe9eff

Browse files
committed
test(fxa-auth-server): migrate DB, Redis & storage tests from Mocha to Jest (FXA-12564)
- Convert DB, Redis, and storage test files from Mocha/Chai to Jest - Set maxWorkers=4 for Jest unit tests to prevent OOM kills - Use page.waitForURL for pairing flow success check in functional tests
1 parent f85a47b commit 7fe9eff

9 files changed

Lines changed: 3166 additions & 0 deletions

File tree

packages/fxa-auth-server/jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ module.exports = {
2121
},
2222
testTimeout: 10000,
2323
clearMocks: true,
24+
maxWorkers: 4,
2425
workerIdleMemoryLimit: '512MB',
2526
setupFiles: ['<rootDir>/jest.setup.js', '<rootDir>/jest.setup-proxyquire.js'],
2627
testPathIgnorePatterns: ['/node_modules/'],

0 commit comments

Comments
 (0)