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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user