diff --git a/packages/xhs/.gitignore b/packages/xhs/.gitignore index a548f4e..656b99f 100644 --- a/packages/xhs/.gitignore +++ b/packages/xhs/.gitignore @@ -1 +1,21 @@ -db-sqlite \ No newline at end of file +db-sqlite + +node_modules + +dist + +app.config.json5 + +apps.config.json + +deploy.tar.gz +cache-file + +/apps + +logs + +.env* +!.env.example + +.turbo \ No newline at end of file diff --git a/packages/xhs/src/test/common.ts b/packages/xhs/src/test/common.ts index 382d4ad..158d5d6 100644 --- a/packages/xhs/src/test/common.ts +++ b/packages/xhs/src/test/common.ts @@ -1,4 +1,7 @@ -import { xhsServices, app } from '../index.ts'; +import { xhsServices, app, xhsRootClient } from '../index.ts'; +import { useConfig } from '@kevisual/use-config/env'; +const config = useConfig(); import { program } from 'commander'; +xhsRootClient.setCookie(config.XHS_ROOT_COOKIE || ''); export { program, xhsServices, app };