From 475534f51f93c52f575c3be3739cad9845bfa838 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=89=A7=E6=AF=85?= Date: Wed, 19 Aug 2020 17:25:16 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=F0=9F=92=8D=20=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E5=80=99=E7=9B=B4=E6=8E=A5=E5=BC=95=E7=94=A8?= =?UTF-8?q?=20src=20=E5=AF=BC=E5=87=BA=E7=9A=84=20solutions.rax=20?= =?UTF-8?q?=E5=B0=B1=E8=A1=8C=E4=BA=86,=E4=B8=8D=E7=94=A8=E5=86=8D?= =?UTF-8?q?=E4=BB=8E=E5=AD=90=E7=9B=AE=E5=BD=95=E9=87=8C=E5=BC=95=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/code-generator/test/rax-app.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/code-generator/test/rax-app.test.ts b/packages/code-generator/test/rax-app.test.ts index 6ac4ce363..e3a05f61c 100644 --- a/packages/code-generator/test/rax-app.test.ts +++ b/packages/code-generator/test/rax-app.test.ts @@ -7,8 +7,8 @@ import path from 'path'; import chalk from 'chalk'; import CodeGenerator from '../src'; -import createRaxAppBuilder from '../src/solutions/rax-app'; -import { IProjectSchema } from '../src/types/schema'; + +import type { IProjectSchema } from '../src/types/schema'; const TEST_CASES_DIR = path.join(__dirname, '../test-cases/rax-app'); @@ -42,7 +42,7 @@ function defineTest(caseDirName: string) { } async function exportProject(schemaJson: IProjectSchema, targetPath: string, projectName: string) { - const raxAppBuilder = createRaxAppBuilder(); + const raxAppBuilder = CodeGenerator.solutions.rax(); const result = await raxAppBuilder.generateProject(schemaJson); const publisher = CodeGenerator.publishers.disk(); await publisher.publish({