@capybara-hq/testing 0.1.0-rc.30 → 0.1.0-rc.31

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.
@@ -22,10 +22,12 @@ export interface DualReplicaOptions {
22
22
  * offline directory (its `*.tgz` files are matched to the entries by sha512); the other entries
23
23
  * are downloaded from `packages.npmRegistry` (set it in `config`, e.g. to a
24
24
  * `startFakeNpmRegistry`). Build both with the kernel tests' `bootstrapFixture` helper.
25
+ * `extraManifest`: the path of an extra bootstrap manifest merged into `manifest`.
25
26
  */
26
27
  bootstrap?: {
27
28
  dir?: string;
28
29
  manifest: BootstrapManifest;
30
+ extraManifest?: string;
29
31
  };
30
32
  /**
31
33
  * 复用已有的 PostgreSQL(管理员连接串,需能 CREATE DATABASE)。传入则只创建并在 stop() 时删除本 harness 的 `cap_*` 库。
@@ -216,6 +216,9 @@ export async function createDualReplicaHarness(opts) {
216
216
  ...(opts.bootstrap !== undefined && {
217
217
  bootstrap: {
218
218
  ...(opts.bootstrap.dir !== undefined && { dir: resolve(opts.bootstrap.dir) }),
219
+ ...(opts.bootstrap.extraManifest !== undefined && {
220
+ extraManifest: resolve(opts.bootstrap.extraManifest),
221
+ }),
219
222
  },
220
223
  bootstrapManifest: opts.bootstrap.manifest,
221
224
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capybara-hq/testing",
3
- "version": "0.1.0-rc.30",
3
+ "version": "0.1.0-rc.31",
4
4
  "description": "Test helpers for Capybara: test containers, dual-replica harness and fake third-party servers",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -47,18 +47,18 @@
47
47
  "tsx": "^4.23.15",
48
48
  "ws": "^8.22.0",
49
49
  "zod": "^4.6.7",
50
- "@capybara-hq/kernel": "^0.1.0-rc.61"
50
+ "@capybara-hq/kernel": "^0.1.0-rc.63"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/pg": "^8.23.1",
54
54
  "@types/ws": "^8.18.2",
55
55
  "@capybara-hq/plugin-client": "^0.1.0-rc.7",
56
- "@capybara-hq/plugin-sdk": "^0.1.0-rc.46"
56
+ "@capybara-hq/plugin-sdk": "^0.1.0-rc.48"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "vitest": "^5.0.5",
60
- "@capybara-hq/plugin-sdk": "^0.1.0-rc.46",
61
- "@capybara-hq/plugin-tools": "^0.1.0-rc.17"
60
+ "@capybara-hq/plugin-tools": "^0.1.0-rc.18",
61
+ "@capybara-hq/plugin-sdk": "^0.1.0-rc.48"
62
62
  },
63
63
  "peerDependenciesMeta": {
64
64
  "@capybara-hq/plugin-tools": {