Skip to content

Commit 87c95bb

Browse files
committed
feat(auth-server): migrate Mocha tests to co-located Jest specs and fix l10n test brittleness
1 parent 807c636 commit 87c95bb

47 files changed

Lines changed: 15698 additions & 60 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,7 @@ jobs:
876876
sudo tee -a /etc/hosts \<<<'127.0.0.1 localhost'
877877
sudo cat /etc/hosts
878878
- wait-for-infrastructure
879+
- ensure-glean-venv
879880
- run:
880881
name: Start services for playwright tests
881882
command: ./packages/functional-tests/scripts/start-services.sh

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@
198198
"@nx/js": "21.2.4",
199199
"@nx/nest": "21.2.4",
200200
"@nx/node": "21.2.4",
201+
"@nx/nx-darwin-arm64": "^22.5.4",
201202
"@nx/react": "21.2.4",
202203
"@nx/s3-cache": "^5.0.0",
203204
"@nx/storybook": "21.2.4",

packages/fxa-auth-server/lib/crypto/password.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* License, v. 2.0. If a copy of the MPL was not distributed with this
33
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
44

5-
export {};
6-
75
const mockLog = {};
86
const mockConfig = {};
97
const Password = require('./password')(mockLog, mockConfig);

packages/fxa-auth-server/lib/crypto/scrypt.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* License, v. 2.0. If a copy of the MPL was not distributed with this
33
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
44

5-
export {};
6-
75
const mockConfig = { scrypt: { maxPending: 5 } };
86
const mockLog: { buffer: string[]; warn: (obj: string) => void } = {
97
buffer: [],

0 commit comments

Comments
 (0)