From 018c2eccce3237b5ee86e1e06963bbf1a2c664f1 Mon Sep 17 00:00:00 2001 From: margrop <1731827+margrop@users.noreply.github.com> Date: Mon, 26 Oct 2026 11:09:26 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E6=8C=89=E5=BD=93=E5=89=8Dschema?= =?UTF-8?q?=E5=BF=AB=E9=80=9F=E5=88=9B=E5=BB=BA=E9=9A=94=E7=A6=BB=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/__tests__/integration/error-list-payload.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/__tests__/integration/error-list-payload.test.ts b/src/__tests__/integration/error-list-payload.test.ts index d30d3e6c..df620cc3 100644 --- a/src/__tests__/integration/error-list-payload.test.ts +++ b/src/__tests__/integration/error-list-payload.test.ts @@ -31,7 +31,8 @@ const get = (query = '') => GET(new Request(`http://localhost/api/error-items/li describe('错题列表大字段与打印回归(真实 SQLite)', () => { beforeAll(async () => { - execFileSync(process.execPath, [path.resolve('node_modules/prisma/build/index.js'), 'migrate', 'deploy'], { + // 一次创建独立测试库;正式迁移由生产构建流程验证。 + execFileSync(process.execPath, [path.resolve('node_modules/prisma/build/index.js'), 'db', 'push', '--skip-generate'], { env: { ...process.env, DATABASE_URL: state.databaseUrl }, stdio: 'pipe', });