forked from kufu/smarthr-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test-runner-jest.config.js
46 lines (44 loc) · 1.4 KB
/
test-runner-jest.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
const { getJestConfig } = require('@storybook/test-runner')
module.exports = {
// The default configuration comes from @storybook/test-runner
...getJestConfig(),
/** Add your own overrides below
* @see https://jestjs.io/docs/configuration
*/
testPathIgnorePatterns: [
/**
* subocomponents で使われれているコンポーネントは export defaults を持たず、
* 上位の Layout.stories.tsx でテストが実行されるので除外している
*/
'Cluster.stories.tsx',
'Reel.stories.tsx',
'Sidebar.stories.tsx',
'Stack.stories.tsx',
'Center.stories.tsx',
'FilterDropdown.stories.tsx',
'DropdownMenuButton.stories.tsx',
'SearchInput.stories.tsx',
/**
* test-runner 導入時にエラーが出ていたコンポーネント
* これらは少しずつ修正していく
*
* error: "Form elements must have labels"
*/
'RadioButton.stories.tsx',
'InputFile.stories.tsx',
'CheckBox.stories.tsx',
'ComboBox.stories.tsx',
'FieldSet.stories.tsx',
'Switch.stories.tsx',
/**
* error: "Form elements must have labels"
* error: "Elements must only use allowed ARIA attributes"
*/
'DatePicker.stories.tsx',
'FormControl.stories.tsx', // DatePicker を含むために除外
/**
* error: "ARIA attributes must conform to valid values"
*/
'Dialog.stories.tsx',
],
}