refactor: for test

This commit is contained in:
xiaojunnuo
2023-05-09 09:49:42 +08:00
parent 003ea9310b
commit f358a0f226
54 changed files with 97 additions and 112 deletions
+3 -2
View File
@@ -19,10 +19,11 @@
"@certd/plugin-aliyun": "workspace:^0.3.0",
"@certd/plugin-tencent": "workspace:^0.3.0",
"@certd/plugin-host": "workspace:^0.3.0",
"@certd/plugin-cert": "workspace:0.3.0"
"@certd/plugin-cert": "workspace:^0.3.0",
"@certd/plugin-huawei": "workspace:^0.3.0"
},
"devDependencies": {
"@certd/pipeline": "workspace:0.3.0",
"@certd/pipeline": "workspace:^0.3.0",
"log4js": "^6.7.1",
"@types/lodash": "^4.14.186",
"vue-tsc": "^0.38.9",
+19
View File
@@ -1,4 +1,23 @@
import * as cert from "@certd/plugin-cert";
import * as aliyun from "@certd/plugin-aliyun";
import * as tencent from "@certd/plugin-tencent";
import * as host from "@certd/plugin-host";
import * as huawei from "@certd/plugin-huawei";
function register(exports: any) {
for (const key in exports) {
const value = exports[key];
console.log("value");
}
}
register(cert);
register(aliyun);
register(tencent);
register(host);
register(huawei);
export * from "@certd/plugin-cert";
export * from "@certd/plugin-aliyun";
export * from "@certd/plugin-tencent";
export * from "@certd/plugin-host";
export * from "@certd/plugin-huawei";
@@ -3,7 +3,7 @@ import "mocha";
import { Executor, RunHistory, FileStorage } from "@certd/pipeline";
import { pipeline } from "./pipeline.define";
import { AccessServiceTest } from "./access-service-test";
import * as all from "../../src";
import "../../src";
describe("pipeline", function () {
it("#pipeline", async function () {
this.timeout(120000);
+2 -2
View File
@@ -8,13 +8,13 @@ export default defineConfig({
name: "pipeline",
},
rollupOptions: {
external: ["vue", "lodash-es", "dayjs", "@fast-crud/fast-crud"],
external: ["vue", "lodash", "dayjs", "@fast-crud/fast-crud"],
output: {
// Provide global variables to use in the UMD build
// for externalized deps
globals: {
vue: "Vue",
"lodash-es": "_",
"lodash": "_",
dayjs: "dayjs",
"@fast-crud/fast-crud": "FastCrud",
},