-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcpk-e2e.config.ts
More file actions
49 lines (41 loc) · 1.24 KB
/
cpk-e2e.config.ts
File metadata and controls
49 lines (41 loc) · 1.24 KB
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
/**
* cpk-e2e Configuration
*
* Configure the target project paths and options.
* This file can be customized for different React Native projects.
*/
export interface CpkE2eConfig {
/** Path to the target UI library root (relative to project root / cwd) */
targetRoot: string;
/** Path to the main index file that exports components (relative to targetRoot) */
indexPath: string;
/** Path to built Storybook static files (relative to targetRoot) */
storybookStaticPath: string;
/** Command to build Storybook in the target project */
storybookBuildCommand: string;
/** Port for serving Storybook */
storybookPort: number;
/** Console error patterns to ignore during testing */
ignoredErrors: string[];
}
const config: CpkE2eConfig = {
targetRoot: '../cpk-ui',
indexPath: 'src/index.tsx',
storybookStaticPath: 'storybook-static',
storybookBuildCommand: 'STORYBOOK=1 npx storybook build -o storybook-static',
storybookPort: 6006,
ignoredErrors: [
'favicon.ico',
'webpack',
'HMR',
'DevTools',
'ERR_CONNECTION',
'net::ERR_',
'Failed to load resource',
'downloadable font',
'ResizeObserver',
'Download the React DevTools',
'was not wrapped in act',
],
};
export default config;