-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcypress.config.ts
34 lines (32 loc) · 879 Bytes
/
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
import { defineConfig } from 'cypress'
import path from 'node:path'
const PORT = process.env.PORT ?? 8080
const HOST = process.env.HOST ?? 'http://localhost'
export default defineConfig({
video: false,
chromeWebSecurity: false,
viewportWidth: 1366,
viewportHeight: 768,
experimentalStudio: false,
component: {
devServer: {
framework: 'next',
bundler: 'webpack',
webpackConfig: {
resolve: {
alias: {
'@/*': path.resolve(__dirname, './src'),
'~/*': path.resolve(__dirname, './src/server'),
'#/*': path.resolve(__dirname, './src/client'),
'&/*': path.resolve(__dirname, './src/shared'),
'@app/*': path.resolve(__dirname, './src/app'),
},
},
},
},
},
e2e: {
// setupNodeEvents(on, config) {},
baseUrl: `${HOST}:${PORT}`,
},
})