@everysk/apps-devkit 0.3.0-beta-20261021182446 → 0.3.0-beta-20261022183653

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.
@@ -18,6 +18,9 @@ import { type ViteUserConfig } from "vitest/config";
18
18
  * - `setupFiles` points at `@everysk/apps-sdk/test/setup`, which installs the jsdom gaps MUI
19
19
  * needs (matchMedia, ResizeObserver). It seeds no page globals: an app injects configuration
20
20
  * per test with `renderWithProviders(ui, { appId, appEnvironmentVar })`.
21
+ * - `@everysk/apps-sdk` is inlined (`server.deps.inline`). Left in node_modules, Vitest does not
22
+ * transform it, so `vi.mock("socket.io-client")` — the SDK's own socket double — never reached
23
+ * the SDK's import of it, and its `WebSocketProvider` opened a real socket in an app's test.
21
24
  * - `testTimeout` is 30s, not Vitest's 5s. The template's default trips MUI transition-driven
22
25
  * tests under `--coverage`, and every app had to raise it by hand.
23
26
  * - Coverage thresholds at 80% on all four counters, which the deploy gate enforces. `branches`
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/vitest/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAA6B,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAI/E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,mBAAmB,GAAI,YAAW,cAAmB,mBA4CjE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/vitest/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAA6B,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAI/E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,mBAAmB,GAAI,YAAW,cAAmB,mBA6CjE,CAAC"}
@@ -20,6 +20,9 @@ import react from "@vitejs/plugin-react";
20
20
  * - `setupFiles` points at `@everysk/apps-sdk/test/setup`, which installs the jsdom gaps MUI
21
21
  * needs (matchMedia, ResizeObserver). It seeds no page globals: an app injects configuration
22
22
  * per test with `renderWithProviders(ui, { appId, appEnvironmentVar })`.
23
+ * - `@everysk/apps-sdk` is inlined (`server.deps.inline`). Left in node_modules, Vitest does not
24
+ * transform it, so `vi.mock("socket.io-client")` — the SDK's own socket double — never reached
25
+ * the SDK's import of it, and its `WebSocketProvider` opened a real socket in an app's test.
23
26
  * - `testTimeout` is 30s, not Vitest's 5s. The template's default trips MUI transition-driven
24
27
  * tests under `--coverage`, and every app had to raise it by hand.
25
28
  * - Coverage thresholds at 80% on all four counters, which the deploy gate enforces. `branches`
@@ -48,6 +51,7 @@ export const defineAppTestConfig = (overrides = {}) => {
48
51
  restoreMocks: true,
49
52
  include: ["src/**/*.{test,spec}.{ts,tsx}"],
50
53
  testTimeout: 30_000,
54
+ server: { deps: { inline: ["@everysk/apps-sdk"] } },
51
55
  coverage: {
52
56
  provider: "v8",
53
57
  reportsDirectory: "./coverage",
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/vitest/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAE,WAAW,EAAuB,MAAM,eAAe,CAAC;AAE/E,OAAO,KAAK,MAAM,sBAAsB,CAAC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,YAA4B,EAAE,EAAE,EAAE;IAClE,MAAM,MAAM,GAAmB;QAC3B,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC;QAElB,OAAO,EAAE;YACL,KAAK,EAAE;gBACH,GAAG,EAAE,aAAa,CAAC,IAAI,GAAG,CAAC,OAAO,EAAE,UAAU,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;aACnE;SACJ;QAED,IAAI,EAAE;YACF,OAAO,EAAE,IAAI;YACb,WAAW,EAAE,OAAO;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GAAG,EAAE,GAAG,CAAC,CAAC;aACnE;SACJ;QAED,IAAI,EAAE;YACF,OAAO,EAAE,IAAI;YACb,WAAW,EAAE,OAAO;YACpB,UAAU,EAAE,CAAC,8BAA8B,CAAC;YAC5C,GAAG,EAAE,KAAK;YACV,UAAU,EAAE,IAAI;YAChB,YAAY,EAAE,IAAI;YAClB,OAAO,EAAE,CAAC,+BAA+B,CAAC;YAC1C,WAAW,EAAE,MAAM;YACnB,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC,mBAAmB,CAAC,EAAE,EAAE;YACnD,QAAQ,EAAE;gBACN,QAAQ,EAAE,IAAI;gBACd,gBAAgB,EAAE,YAAY;gBAC9B,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;gBAC1B,OAAO,EAAE,CAAC,mBAAmB,CAAC;gBAC9B,OAAO,EAAE;oBACL,+BAA+B;oBAC/B,aAAa;oBACb,cAAc;oBACd,cAAc;oBACd,gBAAgB;oBAChB,iBAAiB;oBACjB,cAAc;iBACjB;gBACD,UAAU,EAAE;oBACR,KAAK,EAAE,EAAE;oBACT,SAAS,EAAE,EAAE;oBACb,UAAU,EAAE,EAAE;oBACd,QAAQ,EAAE,EAAE;iBACf;aACJ;SACJ;KACJ,CAAC;IAEF,OAAO,YAAY,CAAC,WAAW,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC;AACxD,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everysk/apps-devkit",
3
- "version": "0.3.0-beta-20261021182446",
3
+ "version": "0.3.0-beta-20261022183653",
4
4
  "description": "Build-time presets for Everysk client applications: Vite, ESLint, Vitest, TypeScript and Prettier.",
5
5
  "keywords": [
6
6
  "everysk",
@@ -23,6 +23,9 @@ import react from "@vitejs/plugin-react";
23
23
  * - `setupFiles` points at `@everysk/apps-sdk/test/setup`, which installs the jsdom gaps MUI
24
24
  * needs (matchMedia, ResizeObserver). It seeds no page globals: an app injects configuration
25
25
  * per test with `renderWithProviders(ui, { appId, appEnvironmentVar })`.
26
+ * - `@everysk/apps-sdk` is inlined (`server.deps.inline`). Left in node_modules, Vitest does not
27
+ * transform it, so `vi.mock("socket.io-client")` — the SDK's own socket double — never reached
28
+ * the SDK's import of it, and its `WebSocketProvider` opened a real socket in an app's test.
26
29
  * - `testTimeout` is 30s, not Vitest's 5s. The template's default trips MUI transition-driven
27
30
  * tests under `--coverage`, and every app had to raise it by hand.
28
31
  * - Coverage thresholds at 80% on all four counters, which the deploy gate enforces. `branches`
@@ -53,6 +56,7 @@ export const defineAppTestConfig = (overrides: ViteUserConfig = {}) => {
53
56
  restoreMocks: true,
54
57
  include: ["src/**/*.{test,spec}.{ts,tsx}"],
55
58
  testTimeout: 30_000,
59
+ server: { deps: { inline: ["@everysk/apps-sdk"] } },
56
60
  coverage: {
57
61
  provider: "v8",
58
62
  reportsDirectory: "./coverage",