philomena/assets/test/jest-setup.ts

22 lines
559 B
TypeScript
Raw Normal View History

import '@testing-library/jest-dom';
import { matchNone } from '../js/query/boolean';
window.booru = {
2024-04-16 14:02:12 +02:00
// eslint-disable-next-line @typescript-eslint/no-empty-function
timeAgo: () => {},
csrfToken: 'mockCsrfToken',
hiddenTag: '/mock-tagblocked.svg',
hiddenTagList: [],
ignoredTagList: [],
imagesWithDownvotingDisabled: [],
spoilerType: 'off',
spoileredTagList: [],
userCanEditFilter: false,
userIsSignedIn: false,
watchedTagList: [],
hiddenFilter: matchNone(),
spoileredFilter: matchNone(),
interactions: [],
2022-04-03 01:15:34 +02:00
tagsVersion: 5
};