1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-24 04:04:24 +00:00

[PM-13779] Add vNext CollectionService without ActiveUserState (#11705)

- add tests
- install jest-extended for additional matchers
- allow for generation of different crypto keys in tests
This commit is contained in:
Thomas Rittson
2024-10-28 10:13:32 +10:00
committed by GitHub
parent e83dca529b
commit d0ed9aaa5d
8 changed files with 636 additions and 2 deletions

View File

@@ -1,3 +1,5 @@
import * as matchers from "jest-extended";
import { toBeFulfilled, toBeResolved, toBeRejected } from "./promise-fulfilled";
import { toAlmostEqual } from "./to-almost-equal";
import { toEqualBuffer } from "./to-equal-buffer";
@@ -6,6 +8,9 @@ export * from "./to-equal-buffer";
export * from "./to-almost-equal";
export * from "./promise-fulfilled";
// add all jest-extended matchers
expect.extend(matchers);
export function addCustomMatchers() {
expect.extend({
toEqualBuffer: toEqualBuffer,