-
Notifications
You must be signed in to change notification settings - Fork 429
/
Copy pathexclude-story-config.js
57 lines (54 loc) · 1.28 KB
/
exclude-story-config.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
53
54
55
56
57
/*
* STORY-BASED TESTING
*
* This uses StoryShots to iterate over stories created in Storybook to
* automatically create DOM, image snapshot, static markup accessibility tests.
*
* This file is list of "Story Kind" names that are created from strings
* in `utilities/constants.js` within each `storybook-stories.jsx` file.
*
* By default, Jest will test all Storybook stories, to exclude a
* component's stories from testing, add it below.
*
* For more information, please visit:
* https://github.com/storybooks/storybook/tree/master/addons/storyshots
*/
const deprecatedComponents = [
'SLDSInlineEdit',
'SLDSLookup',
'SLDSNotification',
'SLDSMenuPicklist',
];
const excludeFromTests = {
accessibility: {
storyKind: [...deprecatedComponents],
},
domSnapshot: {
storyKind: [
'SLDSAppLauncher',
'SLDSGlobalNavigationBar',
'SLDSDatePicker',
'SLDSIconSettings',
'SLDSLocationMap',
'SLDSModal',
'SLDSPanel',
'SLDSTimepicker',
'SLDSWelcomeMat',
...deprecatedComponents,
],
},
visualRegression: {
storyKind: [
'SLDSAppLauncher',
'SLDSGlobalNavigationBar',
'SLDSDatePicker',
'SLDSIconSettings',
'SLDSModal',
'SLDSPanel',
'SLDSTimepicker',
'SLDSWelcomeMat',
...deprecatedComponents,
],
},
};
export default excludeFromTests;