@nocobase/test 1.2.14-alpha → 1.2.16-alpha

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/es/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { describe } from "vitest";
2
2
  import ws from "ws";
3
3
  import { mockDatabase } from "@nocobase/database";
4
- import { mockDatabase as mockDatabase2 } from "@nocobase/database";
4
+ import { MockDatabase, mockDatabase as mockDatabase2 } from "@nocobase/database";
5
5
  import supertest from "supertest";
6
6
  import { default as default2 } from "supertest";
7
7
  import { Application, Gateway, AppSupervisor, PluginManager } from "@nocobase/server";
@@ -211,6 +211,7 @@ const createWsClient = async ({ serverPort, options = {} }) => {
211
211
  };
212
212
  };
213
213
  export {
214
+ MockDatabase,
214
215
  MockServer,
215
216
  createMockServer,
216
217
  createWsClient,
@@ -7,7 +7,7 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
  import ws from 'ws';
10
- export { mockDatabase } from '@nocobase/database';
10
+ export { mockDatabase, MockDatabase } from '@nocobase/database';
11
11
  export { default as supertest } from 'supertest';
12
12
  export * from './mockServer';
13
13
  export declare const pgOnly: () => any;
@@ -7,7 +7,7 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
  import ws from 'ws';
10
- export { mockDatabase } from '@nocobase/database';
10
+ export { mockDatabase, MockDatabase } from '@nocobase/database';
11
11
  export { default as supertest } from 'supertest';
12
12
  export * from './mockServer';
13
13
  export declare const pgOnly: () => any;
@@ -38,6 +38,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
38
38
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
39
39
  var server_exports = {};
40
40
  __export(server_exports, {
41
+ MockDatabase: () => import_database.MockDatabase,
41
42
  createWsClient: () => createWsClient,
42
43
  isPg: () => isPg,
43
44
  mockDatabase: () => import_database.mockDatabase,
@@ -102,6 +103,7 @@ const createWsClient = /* @__PURE__ */ __name(async ({ serverPort, options = {}
102
103
  }, "createWsClient");
103
104
  // Annotate the CommonJS export names for ESM import in node:
104
105
  0 && (module.exports = {
106
+ MockDatabase,
105
107
  createWsClient,
106
108
  isPg,
107
109
  mockDatabase,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/test",
3
- "version": "1.2.14-alpha",
3
+ "version": "1.2.16-alpha",
4
4
  "main": "lib/index.js",
5
5
  "module": "./src/index.ts",
6
6
  "types": "./lib/index.d.ts",
@@ -51,7 +51,7 @@
51
51
  },
52
52
  "dependencies": {
53
53
  "@faker-js/faker": "8.1.0",
54
- "@nocobase/server": "1.2.14-alpha",
54
+ "@nocobase/server": "1.2.16-alpha",
55
55
  "@playwright/test": "^1.44.0",
56
56
  "@testing-library/jest-dom": "^6.4.2",
57
57
  "@testing-library/react": "^14.0.0",
@@ -76,5 +76,5 @@
76
76
  "vitest-dom": "^0.1.1",
77
77
  "ws": "^8.13.0"
78
78
  },
79
- "gitHead": "717c71eee8cec8d230f1856759d97d6a843f8be6"
79
+ "gitHead": "f3383e8fe51a1e7911f312d767e8793b8dcd86f4"
80
80
  }