@shivaedev/test-story 0.20.0 → 0.20.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.20.1 - 2026-10-26
4
+
5
+ ### Fixed
6
+
7
+ - Skip disabled external stylesheets and module scripts during DOM navigation without logging unsupported-file errors or fetching the assets.
8
+
3
9
  ## 0.20.0 - 2026-10-25
4
10
 
5
11
  ### Added
package/README.md CHANGED
@@ -573,7 +573,7 @@ const { cookies } = yield* Effect.promise(() => signedInUser(testAuth, {
573
573
  yield* seedCookies(cookies);
574
574
  ```
575
575
 
576
- `testAuth` is a test-only auth instance configured with Platform's `authTestUtils()` and the real host's database, secret and cookie policy. The seeded session travels on the document's fetch and stays hidden from `document.cookie` when HttpOnly. Use `http://localhost:<port>` for local DOM hosts with secure cookies: happy-dom matches secure cookies on localhost, but not on `http://127.0.0.1`. The listener can still bind to `127.0.0.1`.
576
+ `testAuth` is a test-only auth instance configured with `testUtils()` from `better-auth/plugins` and the real host's database, secret and cookie policy. The seeded session travels on the document's fetch and stays hidden from `document.cookie` when HttpOnly. Use `http://localhost:<port>` for local DOM hosts with secure cookies: happy-dom matches secure cookies on localhost, but not on `http://127.0.0.1`. The listener can still bind to `127.0.0.1`.
577
577
 
578
578
  #### Social sign-in through an outbound provider
579
579
 
@@ -13,7 +13,7 @@ const domEnvironment = {
13
13
  const win = new GlobalWindow({
14
14
  ...happyDOM,
15
15
  console: global.console,
16
- settings: { ...happyDOM.settings, disableErrorCapturing: true },
16
+ settings: { ...happyDOM.settings, disableErrorCapturing: true, handleDisabledFileLoadingAsSuccess: true },
17
17
  url: happyDOM.url ?? "http://localhost:3000",
18
18
  });
19
19
  win.happyDOM.settings.fetch.interceptor = documentTransport(global.fetch);
@@ -1 +1 @@
1
- {"version":3,"file":"domEnvironment.config.js","sourceRoot":"","sources":["../../src/server/domEnv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CAAC,QAAQ,CAAC,MAAM;gBACpB,IAAI,CAAC;oBACJ,MAAM,GAAG,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;oBAC3B,GAAG,CAAC,KAAK,EAAE,CAAC;gBACb,CAAC;wBAAS,CAAC;oBACV,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;wBACxB,OAAO,CAAC,cAAc,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;oBACrC,CAAC;oBACD,KAAK,MAAM,CAAC,GAAG,EAAE,UAAU,CAAC,IAAI,SAAS,EAAE,CAAC;wBAC3C,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE,UAAU,CAAC,CAAC;oBAChD,CAAC;oBACD,OAAO,CAAC,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,CAAC;oBAC7D,eAAe,EAAE,CAAC;gBACnB,CAAC;YACF,CAAC;SACD,CAAC;IACH,CAAC;IACD,eAAe,EAAE,QAAQ;CACzB,CAAC;AAEF,eAAe,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shivaedev/test-story",
3
- "version": "0.20.0",
3
+ "version": "0.20.1",
4
4
  "description": "Tests that read like stories over the real engine: a story kit per engine with its own it, traits per feature, and a failure that prints the story, where it stopped and the engine's state",
5
5
  "homepage": "https://github.com/ShivaeDev/platform/tree/main/packages/test-story#readme",
6
6
  "bugs": {
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "devDependencies": {
48
48
  "@effect/vitest": "4.0.5",
49
- "@shivaedev/quality": "0.39.2",
49
+ "@shivaedev/quality": "0.41.1",
50
50
  "@types/node": "24.19.2",
51
51
  "effect": "4.0.5",
52
52
  "happy-dom": "21.0.3",
@@ -16,7 +16,7 @@ const domEnvironment: Environment = {
16
16
  const win = new GlobalWindow({
17
17
  ...happyDOM,
18
18
  console: global.console,
19
- settings: { ...happyDOM.settings, disableErrorCapturing: true },
19
+ settings: { ...happyDOM.settings, disableErrorCapturing: true, handleDisabledFileLoadingAsSuccess: true },
20
20
  url: happyDOM.url ?? "http://localhost:3000",
21
21
  });
22
22
  win.happyDOM.settings.fetch.interceptor = documentTransport(global.fetch);