2
0

♻️ Remove @typebot.io/schemas from @typebot.io/lib

This commit is contained in:
Baptiste Arnaud
2024-03-15 16:32:29 +01:00
parent b53242ce6a
commit 5073be2439
186 changed files with 809 additions and 581 deletions

View File

@ -1,20 +1,45 @@
import { PlaywrightTestConfig } from '@playwright/test'
import path from 'path'
import { playwrightBaseConfig } from '@typebot.io/lib/playwright/baseConfig'
import { defineConfig, devices } from '@playwright/test'
const config: PlaywrightTestConfig = {
...playwrightBaseConfig,
export default defineConfig({
timeout: process.env.CI ? 50 * 1000 : 40 * 1000,
expect: {
timeout: process.env.CI ? 10 * 1000 : 5 * 1000,
},
forbidOnly: !!process.env.CI,
workers: process.env.CI ? 1 : 3,
retries: process.env.CI ? 2 : 0,
reporter: [
[process.env.CI ? 'github' : 'list'],
['html', { outputFolder: 'src/test/reporters' }],
],
maxFailures: process.env.CI ? 10 : undefined,
webServer: process.env.CI
? {
...(playwrightBaseConfig.webServer as { command: string }),
command: 'pnpm run start',
timeout: 60_000,
reuseExistingServer: true,
port: 3000,
}
: undefined,
outputDir: './src/test/results',
use: {
...playwrightBaseConfig.use,
trace: 'on-first-retry',
locale: 'en-US',
baseURL: process.env.NEXTAUTH_URL,
storageState: path.join(__dirname, 'src/test/storageState.json'),
storageState: './src/test/storageState.json',
},
}
export default config
projects: [
{
name: 'setup db',
testMatch: /global\.setup\.ts/,
},
{
name: 'chromium',
use: {
...devices['Desktop Chrome'],
viewport: { width: 1400, height: 1000 },
},
dependencies: ['setup db'],
},
],
})