enso/app/dashboard/vite.test.config.ts
somebody1234 f0d02de5c8
E2E tests for setup flow (#11148)
- Add E2E tests for setup flow
- Remove `styled.Checkbox` in favor of `ariaComponents.Checkbox`
- Remove `styled.Input` in favor of `ariaComponents.Input`
- Remove `styled.Button` in favor of `ariaComponents.Button`
- Rename unnecessary `Settings` prefix from components in `Settings/`

# Important Notes
None
2024-09-27 07:05:10 +00:00

51 lines
1.3 KiB
TypeScript

/** @file Configuration for vite. */
import { fileURLToPath } from 'node:url'
import { defineConfig, mergeConfig } from 'vite'
import { loadTestEnvironmentVariables } from 'enso-common/src/appConfig'
// =====================
// === Configuration ===
// =====================
loadTestEnvironmentVariables()
const CONFIG = (await import('./vite.config')).default
export default mergeConfig(
CONFIG,
defineConfig({
resolve: {
alias: {
// eslint-disable-next-line @typescript-eslint/naming-convention
'@stripe/stripe-js/pure': fileURLToPath(new URL('./e2e/mock/stripe.ts', import.meta.url)),
// eslint-disable-next-line @typescript-eslint/naming-convention
'@stripe/react-stripe-js': fileURLToPath(
new URL('./e2e/mock/react-stripe.tsx', import.meta.url),
),
},
extensions: [
'.mock.mjs',
'.mock.js',
'.mock.mts',
'.mock.ts',
'.mock.jsx',
'.mock.tsx',
'.mock.json',
'.mjs',
'.js',
'.mts',
'.ts',
'.jsx',
'.tsx',
'.json',
],
},
define: {
// eslint-disable-next-line @typescript-eslint/naming-convention
'process.env.IS_IN_PLAYWRIGHT_TEST': JSON.stringify(`${true}`),
},
}),
)