mirror of
https://github.com/modelstudioai/cli.git
synced 2026-09-14 19:49:23 +08:00
9602209113
- Added e2e package as a workspace dependency in pnpm-lock.yaml. - Updated globalSetup path in vite.config.ts to point to the new e2e package location. - Enhanced documentation for CLI E2E testing, including architecture layers and triggering conditions. - Refactored test paths and commands in the documentation to align with the new structure. - Removed outdated dataset and auth E2E tests to streamline the test suite. - Updated command references and validation checks in the documentation to reflect recent changes.
33 lines
553 B
TypeScript
33 lines
553 B
TypeScript
import { defineConfig } from "vite-plus";
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globalSetup: "../e2e/src/global-setup.ts",
|
|
testTimeout: 60_000,
|
|
hookTimeout: 60_000,
|
|
},
|
|
pack: {
|
|
entry: {
|
|
bailian: "src/main.ts",
|
|
},
|
|
hash: false,
|
|
minify: true,
|
|
platform: "node",
|
|
banner: "#!/usr/bin/env node\n",
|
|
outputOptions: {
|
|
codeSplitting: false,
|
|
},
|
|
dts: {
|
|
tsgo: true,
|
|
},
|
|
exports: true,
|
|
},
|
|
lint: {
|
|
options: {
|
|
typeAware: true,
|
|
typeCheck: true,
|
|
},
|
|
},
|
|
fmt: {},
|
|
});
|