-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetupTest.js
49 lines (46 loc) · 894 Bytes
/
setupTest.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/* eslint-disable import/no-extraneous-dependencies */
import '@testing-library/jest-dom';
import siteConfig from 'site.config';
import { mergeConfig } from './config';
jest.mock('universal-cookie', () => {
const mCookie = {
get: jest.fn(),
remove: jest.fn(),
};
return jest.fn(() => mCookie);
});
mergeConfig(siteConfig);
global.PARAGON_THEME = {
paragon: {
version: '1.0.0',
themeUrls: {
core: {
fileName: 'core.min.css',
},
defaults: {
light: 'light',
},
variants: {
light: {
fileName: 'light.min.css',
},
},
},
},
brand: {
version: '1.0.0',
themeUrls: {
core: {
fileName: 'core.min.css',
},
defaults: {
light: 'light',
},
variants: {
light: {
fileName: 'light.min.css',
},
},
},
},
};