@nocobase/test 2.0.0-alpha.50 → 2.0.0-alpha.52

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.
@@ -72,10 +72,11 @@ export declare class MockServer extends Application {
72
72
  agent(callback?: any): ExtendedAgent;
73
73
  protected createDatabase(options: ApplicationOptions): import("@nocobase/database").MockDatabase;
74
74
  }
75
- export declare function mockServer(options?: ApplicationOptions): MockServer;
75
+ export declare function mockServer(options?: MockServerOptions): MockServer;
76
76
  export declare function startMockServer(options?: ApplicationOptions): Promise<MockServer>;
77
77
  type BeforeInstallFn = (app: any) => Promise<void>;
78
78
  export type MockServerOptions = ApplicationOptions & {
79
+ acl?: boolean;
79
80
  version?: string;
80
81
  beforeInstall?: BeforeInstallFn;
81
82
  skipInstall?: boolean;
@@ -72,10 +72,11 @@ export declare class MockServer extends Application {
72
72
  agent(callback?: any): ExtendedAgent;
73
73
  protected createDatabase(options: ApplicationOptions): import("@nocobase/database").MockDatabase;
74
74
  }
75
- export declare function mockServer(options?: ApplicationOptions): MockServer;
75
+ export declare function mockServer(options?: MockServerOptions): MockServer;
76
76
  export declare function startMockServer(options?: ApplicationOptions): Promise<MockServer>;
77
77
  type BeforeInstallFn = (app: any) => Promise<void>;
78
78
  export type MockServerOptions = ApplicationOptions & {
79
+ acl?: boolean;
79
80
  version?: string;
80
81
  beforeInstall?: BeforeInstallFn;
81
82
  skipInstall?: boolean;
@@ -109,7 +109,7 @@ const _MockServer = class _MockServer extends import_server.Application {
109
109
  roleName,
110
110
  signInTime: Date.now()
111
111
  },
112
- import_node_process.default.env.APP_KEY,
112
+ authManager.jwt.secret(),
113
113
  {
114
114
  jwtid: tokenInfo.jti,
115
115
  expiresIn
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/test",
3
- "version": "2.0.0-alpha.50",
3
+ "version": "2.0.0-alpha.52",
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": "2.0.0-alpha.50",
54
+ "@nocobase/server": "2.0.0-alpha.52",
55
55
  "@playwright/test": "^1.45.3",
56
56
  "@testing-library/jest-dom": "^6.4.2",
57
57
  "@testing-library/react": "^14.0.0",
@@ -75,5 +75,5 @@
75
75
  "vitest-dom": "^0.1.1",
76
76
  "ws": "^8.13.0"
77
77
  },
78
- "gitHead": "a6eb64abf3632e116ad0b295a7f410270a1059d1"
78
+ "gitHead": "b32992d8baeb4ca6616d839ca2f9c023d49476a9"
79
79
  }