mirror of
https://github.com/enso-org/enso.git
synced 2024-12-21 14:51:44 +03:00
f0d02de5c8
- 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
51 lines
1.3 KiB
TypeScript
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}`),
|
|
},
|
|
}),
|
|
)
|