-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcypress.config.ts
39 lines (34 loc) · 1.21 KB
/
cypress.config.ts
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
import { defineConfig } from 'cypress';
// @ts-ignore: This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
export default defineConfig({
projectId: 'oxdvwr',
videosFolder: 'src/tests/videos',
supportFolder: 'src/tests/support',
fixturesFolder: 'src/tests/fixtures',
downloadsFolder: 'src/tests/downloads',
screenshotsFolder: 'src/tests/screenshots',
env: {
email: '[email protected]',
password: '123456',
},
e2e: {
specPattern: 'src/tests/e2e/**/*.cy.{js,jsx,ts,tsx}',
supportFile: 'src/tests/support/e2e/index.ts',
baseUrl: 'http://localhost:3000/',
// @ts-ignore: Property 'projectRoot' is optional in type 'ExtendedCypressConfig' but required in type 'PluginConfigOptions'.
setupNodeEvents(on) {
on('before:browser:launch', (_, launchOptions) => {
launchOptions.args.push('--enable-features=SharedArrayBuffer');
return launchOptions;
});
},
},
component: {
indexHtmlFile: 'src/tests/support/component/component-index.html',
supportFile: 'src/tests/support/component/index.ts',
devServer: {
framework: 'next',
bundler: 'webpack',
},
},
});