mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
12 lines
247 B
TypeScript
12 lines
247 B
TypeScript
import { expect } from "vitest";
|
|
|
|
|
|
expect.extend({
|
|
toSatisfy(received: string, predicate: (value: string) => boolean) {
|
|
return {
|
|
pass: predicate(received),
|
|
message: () => `${received} does not satisfy predicate`,
|
|
};
|
|
},
|
|
});
|