14 lines
478 B
TypeScript
14 lines
478 B
TypeScript
import "jest-extended";
|
|
import { TagCategory } from "../BooruTypes";
|
|
|
|
declare global {
|
|
namespace jest {
|
|
interface Matchers<R> {
|
|
// The `= undefined` part is incorrect according to VSCode, but it is actually required.
|
|
toHaveTag(tagName: string, tagCategory: TagCategory | undefined = undefined): CustomMatcherResult;
|
|
toHaveNote(noteText: string): CustomMatcherResult;
|
|
toHaveResolution(resolution: [number, number]): CustomMatcherResult;
|
|
}
|
|
}
|
|
}
|