mirror of
https://github.com/langgenius/dify.git
synced 2026-07-21 10:38:32 +08:00
25 lines
781 B
TypeScript
25 lines
781 B
TypeScript
import type { IConfiguration } from '@cucumber/cucumber'
|
|
import './scripts/env-register'
|
|
|
|
const hasCliTags = process.argv.some((arg) => arg === '--tags' || arg.startsWith('--tags='))
|
|
const defaultNonExternalTags = 'not @prepared and not @external-model and not @external-tool'
|
|
const defaultTags =
|
|
process.env.E2E_CUCUMBER_TAGS || (hasCliTags ? undefined : defaultNonExternalTags)
|
|
|
|
const config = {
|
|
format: [
|
|
'progress-bar',
|
|
'summary',
|
|
'html:./cucumber-report/report.html',
|
|
'message:./cucumber-report/report.ndjson',
|
|
],
|
|
import: ['./tsx-register.js', 'features/**/*.ts'],
|
|
paths: ['features/**/*.feature'],
|
|
...(defaultTags ? { tags: defaultTags } : {}),
|
|
timeout: 60_000,
|
|
} satisfies Partial<IConfiguration> & {
|
|
timeout: number
|
|
}
|
|
|
|
export default config
|