This commit is contained in:
parent
90d0307cf0
commit
b88fa68874
1 changed files with 5 additions and 8 deletions
|
@ -6,15 +6,12 @@ interface CustomMatchers<R = unknown> {
|
||||||
toLogError(): R;
|
toLogError(): R;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare global {
|
declare module "vitest" {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
||||||
namespace Vi {
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||||
interface Assertion extends CustomMatchers {}
|
interface Assertion extends CustomMatchers {}
|
||||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||||
interface AsymmetricMatchersContaining extends CustomMatchers {}
|
interface AsymmetricMatchersContaining extends CustomMatchers {}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
expect.extend({
|
expect.extend({
|
||||||
compare_tolerance(received: DecimalSource, expected: DecimalSource, tolerance?: number) {
|
compare_tolerance(received: DecimalSource, expected: DecimalSource, tolerance?: number) {
|
||||||
|
|
Loading…
Reference in a new issue