@hot-updater/test-utils 1.2.0-rc.30 → 1.2.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.
Files changed (2) hide show
  1. package/dist/index.mjs +14 -3
  2. package/package.json +9 -9
package/dist/index.mjs CHANGED
@@ -642,10 +642,19 @@ const setupCoreAdminTestSuite = (options) => {
642
642
  isSandbox: true,
643
643
  sandboxUrlScheme: 42
644
644
  })).toBe(400);
645
+ expect(await refusal("74", {
646
+ channel,
647
+ nativeAppVersion: 42
648
+ })).toBe(400);
649
+ expect(await refusal("74", {
650
+ channel,
651
+ nativeAppVersion: " "
652
+ })).toBe(400);
645
653
  const tagged = await post("72", {
646
654
  channel: sandboxChannel,
647
655
  isSandbox: true,
648
- sandboxUrlScheme: "acme-preview"
656
+ sandboxUrlScheme: "acme-preview",
657
+ nativeAppVersion: "1.6.0"
649
658
  });
650
659
  expect(tagged.status).toBe(201);
651
660
  const sandboxBuild = (await tagged.json()).data;
@@ -658,13 +667,15 @@ const setupCoreAdminTestSuite = (options) => {
658
667
  expect(sandboxBuild).toMatchObject({
659
668
  is_sandbox: true,
660
669
  is_store_build: false,
661
- sandbox_url_scheme: "acme-preview"
670
+ sandbox_url_scheme: "acme-preview",
671
+ native_app_version: "1.6.0"
662
672
  });
663
673
  expect(plainBuild).toMatchObject({
664
674
  is_sandbox: false,
665
675
  is_store_build: false,
666
676
  sandbox_url_scheme: null,
667
- export_method: null
677
+ export_method: null,
678
+ native_app_version: null
668
679
  });
669
680
  expect((await adminJson(`/native-builds/${sandboxBuild.id}`)).data).toEqual(sandboxBuild);
670
681
  expect((await adminJson(`/native-builds/${plainBuild.id}`)).data).toEqual(plainBuild);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hot-updater/test-utils",
3
- "version": "1.2.0-rc.30",
3
+ "version": "1.2.0-rc.31",
4
4
  "type": "module",
5
5
  "description": "Test utilities for Hot Updater packages",
6
6
  "sideEffects": false,
@@ -50,10 +50,10 @@
50
50
  "mysql2": "*",
51
51
  "pg": "*",
52
52
  "vitest": "^4.0.0",
53
- "@hot-updater/protocol": "^1.2.0-rc.30",
54
- "@hot-updater/plugin-insights": "^1.2.0-rc.30",
55
- "@hot-updater/plugin-core": "^1.2.0-rc.30",
56
- "@hot-updater/server": "^1.2.0-rc.30"
53
+ "@hot-updater/plugin-insights": "^1.2.0-rc.31",
54
+ "@hot-updater/server": "^1.2.0-rc.31",
55
+ "@hot-updater/plugin-core": "^1.2.0-rc.31",
56
+ "@hot-updater/protocol": "^1.2.0-rc.31"
57
57
  },
58
58
  "peerDependenciesMeta": {
59
59
  "@electric-sql/pglite": {
@@ -84,10 +84,10 @@
84
84
  "typescript": "npm:@typescript/typescript6@6.0.2",
85
85
  "vitest": "4.1.4",
86
86
  "workspace-tools": "^0.42.3",
87
- "@hot-updater/plugin-core": "1.2.0-rc.30",
88
- "@hot-updater/protocol": "1.2.0-rc.30",
89
- "@hot-updater/server": "1.2.0-rc.30",
90
- "@hot-updater/plugin-insights": "1.2.0-rc.30"
87
+ "@hot-updater/plugin-insights": "1.2.0-rc.31",
88
+ "@hot-updater/plugin-core": "1.2.0-rc.31",
89
+ "@hot-updater/protocol": "1.2.0-rc.31",
90
+ "@hot-updater/server": "1.2.0-rc.31"
91
91
  },
92
92
  "inlinedDependencies": {
93
93
  "@clack/core": "1.4.3",