dify/e2e/scripts/run-external-runtime.ts

15 lines
409 B
TypeScript

import { e2eDir, isMainModule, runForegroundProcess } from './common'
import './env-register'
const defaultExternalRuntimeTags = '@external-model or @external-tool'
const main = async () => {
await runForegroundProcess({
command: 'npx',
args: ['tsx', './scripts/run-cucumber.ts', '--', '--tags', defaultExternalRuntimeTags],
cwd: e2eDir,
})
}
if (isMainModule(import.meta.url)) void main()