@tachybase/plugin-workflow-test 1.5.1 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/externalVersion.js +3 -3
- package/dist/server/index.d.ts +0 -1
- package/dist/server/index.js +0 -3
- package/package.json +5 -5
- package/src/server/index.ts +1 -6
package/dist/externalVersion.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
"@tachybase/client": "1.
|
|
2
|
+
"@tachybase/client": "1.6.1",
|
|
3
3
|
"dayjs": "1.11.13",
|
|
4
4
|
"lodash": "4.17.21",
|
|
5
|
-
"@tachybase/test": "1.
|
|
6
|
-
"@tego/server": "1.
|
|
5
|
+
"@tachybase/test": "1.6.0-alpha.9",
|
|
6
|
+
"@tego/server": "1.6.0-alpha.9"
|
|
7
7
|
};
|
package/dist/server/index.d.ts
CHANGED
|
@@ -6,5 +6,4 @@ export interface MockServerOptions extends ApplicationOptions {
|
|
|
6
6
|
export declare function sleep(ms: number): Promise<unknown>;
|
|
7
7
|
export declare function getApp(options?: MockServerOptions): Promise<MockServer>;
|
|
8
8
|
export default class WorkflowTestPlugin extends Plugin {
|
|
9
|
-
load(): Promise<void>;
|
|
10
9
|
}
|
package/dist/server/index.js
CHANGED
|
@@ -89,9 +89,6 @@ async function getApp(options = {}) {
|
|
|
89
89
|
return app;
|
|
90
90
|
}
|
|
91
91
|
class WorkflowTestPlugin extends import_server.Plugin {
|
|
92
|
-
async load() {
|
|
93
|
-
await this.importCollections(import_node_path.default.resolve(__dirname, "collections"));
|
|
94
|
-
}
|
|
95
92
|
}
|
|
96
93
|
// Annotate the CommonJS export names for ESM import in node:
|
|
97
94
|
0 && (module.exports = {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tachybase/plugin-workflow-test",
|
|
3
3
|
"displayName": "Workflow: test kit",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.6.1",
|
|
5
5
|
"description": "Workflow Test Toolkit",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"Workflow"
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
"main": "dist/server/index.js",
|
|
11
11
|
"types": "./dist/server/index.d.ts",
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@tachybase/test": "1.
|
|
14
|
-
"@tego/client": "1.
|
|
15
|
-
"@tego/server": "1.
|
|
13
|
+
"@tachybase/test": "1.6.0-alpha.9",
|
|
14
|
+
"@tego/client": "1.6.0-alpha.9",
|
|
15
|
+
"@tego/server": "1.6.0-alpha.9",
|
|
16
16
|
"dayjs": "1.11.13",
|
|
17
17
|
"lodash": "4.17.21",
|
|
18
|
-
"@tachybase/client": "1.
|
|
18
|
+
"@tachybase/client": "1.6.1"
|
|
19
19
|
},
|
|
20
20
|
"description.zh-CN": "工作流测试工具包",
|
|
21
21
|
"displayName.zh-CN": "工作流:测试工具包"
|
package/src/server/index.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
2
|
import { createMockServer, mockDatabase, MockServer } from '@tachybase/test';
|
|
3
|
-
|
|
4
3
|
import { ApplicationOptions, Plugin, Resourcer, SequelizeDataSource, uid } from '@tego/server';
|
|
5
4
|
|
|
6
5
|
import functions from './functions';
|
|
@@ -75,8 +74,4 @@ export async function getApp(options: MockServerOptions = {}): Promise<MockServe
|
|
|
75
74
|
return app;
|
|
76
75
|
}
|
|
77
76
|
|
|
78
|
-
export default class WorkflowTestPlugin extends Plugin {
|
|
79
|
-
async load() {
|
|
80
|
-
await this.importCollections(path.resolve(__dirname, 'collections'));
|
|
81
|
-
}
|
|
82
|
-
}
|
|
77
|
+
export default class WorkflowTestPlugin extends Plugin {}
|