mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-17 11:13:50 +00:00
test: 💍 测试的时候直接引用 src 导出的 solutions.rax 就行了,不用再从子目录里引了
This commit is contained in:
parent
27f0e13010
commit
475534f51f
@ -7,8 +7,8 @@ import path from 'path';
|
|||||||
import chalk from 'chalk';
|
import chalk from 'chalk';
|
||||||
|
|
||||||
import CodeGenerator from '../src';
|
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');
|
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) {
|
async function exportProject(schemaJson: IProjectSchema, targetPath: string, projectName: string) {
|
||||||
const raxAppBuilder = createRaxAppBuilder();
|
const raxAppBuilder = CodeGenerator.solutions.rax();
|
||||||
const result = await raxAppBuilder.generateProject(schemaJson);
|
const result = await raxAppBuilder.generateProject(schemaJson);
|
||||||
const publisher = CodeGenerator.publishers.disk();
|
const publisher = CodeGenerator.publishers.disk();
|
||||||
await publisher.publish({
|
await publisher.publish({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user