mirror of
https://github.com/enso-org/enso.git
synced 2024-12-20 21:51:43 +03:00
736134e491
Fixes #11604 Most issues were caused by a problem with Project List flooding the network with its requests - this was fixed on develop. But one assertion was flaky - it assumed we will see the "real" run result on `write` node, but sometimes it is immediately overwritten by dry run. But the most important part of this PR is adding traces to Electron packages - it's should be much easier now to debug E2E test failures. Also renamed the previously misnamed "E2E tests" to "[GUI] integration tests".
55 lines
1.3 KiB
TypeScript
55 lines
1.3 KiB
TypeScript
/** @file Vite configuration for dashboard integration tests' server. */
|
|
import { fileURLToPath } from 'node:url'
|
|
|
|
import { defineConfig, mergeConfig } from 'vite'
|
|
|
|
import { loadTestEnvironmentVariables } from 'enso-common/src/appConfig'
|
|
|
|
// =====================
|
|
// === Configuration ===
|
|
// =====================
|
|
|
|
loadTestEnvironmentVariables()
|
|
|
|
// This configuration file is for dashboard tests only.
|
|
process.env.CLOUD_BUILD = 'true'
|
|
const CONFIG = (await import('./vite.config')).default
|
|
|
|
export default mergeConfig(
|
|
CONFIG,
|
|
defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
'@stripe/stripe-js/pure': fileURLToPath(
|
|
new URL('./integration-test/dashboard/mock/stripe.ts', import.meta.url),
|
|
),
|
|
'@stripe/react-stripe-js': fileURLToPath(
|
|
new URL('./integration-test/dashboard/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: {
|
|
'process.env.IS_IN_PLAYWRIGHT_TEST': JSON.stringify(`${true}`),
|
|
},
|
|
build: {
|
|
outDir: fileURLToPath(new URL('./mockDist', import.meta.url)),
|
|
},
|
|
}),
|
|
)
|