forked from mui/material-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.tests.js
52 lines (42 loc) · 1.66 KB
/
karma.tests.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
50
51
52
import './utils/init';
import './utils/setupKarma';
const materialIntegrationContext = require.context(
'../packages/mui-material/test/integration',
true,
/\.test\.(js|ts|tsx)$/,
);
materialIntegrationContext.keys().forEach(materialIntegrationContext);
const materialUnitContext = require.context(
'../packages/mui-material/src/',
true,
/\.test\.(js|ts|tsx)$/,
);
materialUnitContext.keys().forEach(materialUnitContext);
const labUnitContext = require.context('../packages/mui-lab/src/', true, /\.test\.(js|ts|tsx)$/);
labUnitContext.keys().forEach(labUnitContext);
const styledEngineContext = require.context(
'../packages/mui-styled-engine/src/',
true,
/\.test\.(js|ts|tsx)$/,
);
styledEngineContext.keys().forEach(styledEngineContext);
const styledEngineSCContext = require.context(
'../packages/mui-styled-engine-sc/src/',
true,
/\.test\.(js|ts|tsx)$/,
);
styledEngineSCContext.keys().forEach(styledEngineSCContext);
const systemContext = require.context('../packages/mui-system/src/', true, /\.test\.(js|ts|tsx)$/);
systemContext.keys().forEach(systemContext);
const baseUnitContext = require.context('../packages/mui-base/src/', true, /\.test\.(js|ts|tsx)$/);
baseUnitContext.keys().forEach(baseUnitContext);
const utilsContext = require.context('../packages/mui-utils/src/', true, /\.test\.(js|ts|tsx)$/);
utilsContext.keys().forEach(utilsContext);
const materialNextContext = require.context(
'../packages/mui-material-next/src/',
true,
/\.test\.(js|ts|tsx)$/,
);
materialNextContext.keys().forEach(materialNextContext);
const joyContext = require.context('../packages/mui-joy/src', true, /\.test\.(js|ts|tsx)$/);
joyContext.keys().forEach(joyContext);