@storybook/addon-vitest 10.2.0-alpha.1 → 10.2.0-alpha.10

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.
@@ -1,5 +1,6 @@
1
1
  // ../../core/src/component-testing/constants.ts
2
- var ADDON_ID = "storybook/interactions", PANEL_ID = `${ADDON_ID}/panel`, DOCUMENTATION_LINK = "writing-tests/integrations/vitest-addon", DOCUMENTATION_DISCREPANCY_LINK = `${DOCUMENTATION_LINK}#what-happens-when-there-are-different-test-results-in-multiple-environments`;
2
+ var ADDON_ID = "storybook/interactions", PANEL_ID = `${ADDON_ID}/panel`;
3
+ var DOCUMENTATION_LINK = "writing-tests/integrations/vitest-addon", DOCUMENTATION_DISCREPANCY_LINK = `${DOCUMENTATION_LINK}#what-happens-when-there-are-different-test-results-in-multiple-environments`;
3
4
 
4
5
  // ../a11y/src/constants.ts
5
6
  var ADDON_ID2 = "storybook/a11y", PANEL_ID2 = `${ADDON_ID2}/panel`;
@@ -1,29 +1,29 @@
1
- import CJS_COMPAT_NODE_URL_v9cj2j9732f from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_v9cj2j9732f from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_v9cj2j9732f from "node:module";
1
+ import CJS_COMPAT_NODE_URL_g9bstawb5be from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_g9bstawb5be from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_g9bstawb5be from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_v9cj2j9732f.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_v9cj2j9732f.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_v9cj2j9732f.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_g9bstawb5be.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_g9bstawb5be.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_g9bstawb5be.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
 
13
- // ../../node_modules/empathic/find.mjs
13
+ // ../../../node_modules/empathic/find.mjs
14
14
  import { join as join2 } from "node:path";
15
15
  import { existsSync, statSync } from "node:fs";
16
16
 
17
- // ../../node_modules/empathic/walk.mjs
17
+ // ../../../node_modules/empathic/walk.mjs
18
18
  import { dirname } from "node:path";
19
19
 
20
- // ../../node_modules/empathic/resolve.mjs
20
+ // ../../../node_modules/empathic/resolve.mjs
21
21
  import { isAbsolute, join, resolve } from "node:path";
22
22
  function absolute(input, root) {
23
23
  return isAbsolute(input) ? input : resolve(root || ".", input);
24
24
  }
25
25
 
26
- // ../../node_modules/empathic/walk.mjs
26
+ // ../../../node_modules/empathic/walk.mjs
27
27
  function up(base, options) {
28
28
  let { last, cwd } = options || {}, tmp = absolute(base, cwd), root = absolute(last || "/", cwd), prev, arr = [];
29
29
  for (; prev !== root && (arr.push(tmp), tmp = dirname(prev = tmp), tmp !== prev); )
@@ -31,7 +31,7 @@ function up(base, options) {
31
31
  return arr;
32
32
  }
33
33
 
34
- // ../../node_modules/empathic/find.mjs
34
+ // ../../../node_modules/empathic/find.mjs
35
35
  function any(names, options) {
36
36
  let dir, start = options && options.cwd || "", j = 0, len = names.length, tmp;
37
37
  for (dir of up(start, options))
@@ -1,21 +1,21 @@
1
- import CJS_COMPAT_NODE_URL_v9cj2j9732f from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_v9cj2j9732f from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_v9cj2j9732f from "node:module";
1
+ import CJS_COMPAT_NODE_URL_g9bstawb5be from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_g9bstawb5be from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_g9bstawb5be from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_v9cj2j9732f.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_v9cj2j9732f.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_v9cj2j9732f.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_g9bstawb5be.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_g9bstawb5be.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_g9bstawb5be.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  __commonJS
14
- } from "./chunk-H55ZHNTN.js";
14
+ } from "./chunk-X2L4WX7O.js";
15
15
 
16
- // ../../node_modules/semver/internal/constants.js
16
+ // ../../../node_modules/semver/internal/constants.js
17
17
  var require_constants = __commonJS({
18
- "../../node_modules/semver/internal/constants.js"(exports, module) {
18
+ "../../../node_modules/semver/internal/constants.js"(exports, module) {
19
19
  "use strict";
20
20
  var SEMVER_SPEC_VERSION = "2.0.0", MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
21
21
  9007199254740991, MAX_SAFE_COMPONENT_LENGTH = 16, MAX_SAFE_BUILD_LENGTH = 250, RELEASE_TYPES = [
@@ -40,9 +40,9 @@ var require_constants = __commonJS({
40
40
  }
41
41
  });
42
42
 
43
- // ../../node_modules/semver/internal/debug.js
43
+ // ../../../node_modules/semver/internal/debug.js
44
44
  var require_debug = __commonJS({
45
- "../../node_modules/semver/internal/debug.js"(exports, module) {
45
+ "../../../node_modules/semver/internal/debug.js"(exports, module) {
46
46
  "use strict";
47
47
  var debug = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
48
48
  };
@@ -50,9 +50,9 @@ var require_debug = __commonJS({
50
50
  }
51
51
  });
52
52
 
53
- // ../../node_modules/semver/internal/re.js
53
+ // ../../../node_modules/semver/internal/re.js
54
54
  var require_re = __commonJS({
55
- "../../node_modules/semver/internal/re.js"(exports, module) {
55
+ "../../../node_modules/semver/internal/re.js"(exports, module) {
56
56
  "use strict";
57
57
  var {
58
58
  MAX_SAFE_COMPONENT_LENGTH,
@@ -121,9 +121,9 @@ var require_re = __commonJS({
121
121
  }
122
122
  });
123
123
 
124
- // ../../node_modules/semver/internal/identifiers.js
124
+ // ../../../node_modules/semver/internal/identifiers.js
125
125
  var require_identifiers = __commonJS({
126
- "../../node_modules/semver/internal/identifiers.js"(exports, module) {
126
+ "../../../node_modules/semver/internal/identifiers.js"(exports, module) {
127
127
  "use strict";
128
128
  var numeric = /^[0-9]+$/, compareIdentifiers = (a, b) => {
129
129
  if (typeof a == "number" && typeof b == "number")
@@ -138,18 +138,18 @@ var require_identifiers = __commonJS({
138
138
  }
139
139
  });
140
140
 
141
- // ../../node_modules/semver/internal/parse-options.js
141
+ // ../../../node_modules/semver/internal/parse-options.js
142
142
  var require_parse_options = __commonJS({
143
- "../../node_modules/semver/internal/parse-options.js"(exports, module) {
143
+ "../../../node_modules/semver/internal/parse-options.js"(exports, module) {
144
144
  "use strict";
145
145
  var looseOption = Object.freeze({ loose: !0 }), emptyOpts = Object.freeze({}), parseOptions = (options) => options ? typeof options != "object" ? looseOption : options : emptyOpts;
146
146
  module.exports = parseOptions;
147
147
  }
148
148
  });
149
149
 
150
- // ../../node_modules/semver/classes/semver.js
150
+ // ../../../node_modules/semver/classes/semver.js
151
151
  var require_semver = __commonJS({
152
- "../../node_modules/semver/classes/semver.js"(exports, module) {
152
+ "../../../node_modules/semver/classes/semver.js"(exports, module) {
153
153
  "use strict";
154
154
  var debug = require_debug(), { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants(), { safeRe: re, t } = require_re(), parseOptions = require_parse_options(), { compareIdentifiers } = require_identifiers(), SemVer = class _SemVer {
155
155
  constructor(version, options) {
@@ -309,18 +309,18 @@ var require_semver = __commonJS({
309
309
  }
310
310
  });
311
311
 
312
- // ../../node_modules/semver/functions/compare.js
312
+ // ../../../node_modules/semver/functions/compare.js
313
313
  var require_compare = __commonJS({
314
- "../../node_modules/semver/functions/compare.js"(exports, module) {
314
+ "../../../node_modules/semver/functions/compare.js"(exports, module) {
315
315
  "use strict";
316
316
  var SemVer = require_semver(), compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
317
317
  module.exports = compare;
318
318
  }
319
319
  });
320
320
 
321
- // ../../node_modules/semver/functions/gte.js
321
+ // ../../../node_modules/semver/functions/gte.js
322
322
  var require_gte = __commonJS({
323
- "../../node_modules/semver/functions/gte.js"(exports, module) {
323
+ "../../../node_modules/semver/functions/gte.js"(exports, module) {
324
324
  "use strict";
325
325
  var compare = require_compare(), gte = (a, b, loose) => compare(a, b, loose) >= 0;
326
326
  module.exports = gte;
@@ -1,21 +1,21 @@
1
- import CJS_COMPAT_NODE_URL_v9cj2j9732f from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_v9cj2j9732f from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_v9cj2j9732f from "node:module";
1
+ import CJS_COMPAT_NODE_URL_g9bstawb5be from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_g9bstawb5be from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_g9bstawb5be from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_v9cj2j9732f.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_v9cj2j9732f.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_v9cj2j9732f.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_g9bstawb5be.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_g9bstawb5be.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_g9bstawb5be.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  __commonJS
14
- } from "./chunk-H55ZHNTN.js";
14
+ } from "./chunk-X2L4WX7O.js";
15
15
 
16
- // ../../node_modules/ts-dedent/dist/index.js
16
+ // ../../../node_modules/ts-dedent/dist/index.js
17
17
  var require_dist = __commonJS({
18
- "../../node_modules/ts-dedent/dist/index.js"(exports) {
18
+ "../../../node_modules/ts-dedent/dist/index.js"(exports) {
19
19
  "use strict";
20
20
  Object.defineProperty(exports, "__esModule", { value: !0 });
21
21
  exports.dedent = void 0;
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_v9cj2j9732f from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_v9cj2j9732f from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_v9cj2j9732f from "node:module";
1
+ import CJS_COMPAT_NODE_URL_g9bstawb5be from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_g9bstawb5be from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_g9bstawb5be from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_v9cj2j9732f.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_v9cj2j9732f.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_v9cj2j9732f.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_g9bstawb5be.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_g9bstawb5be.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_g9bstawb5be.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -12,12 +12,12 @@ var require = CJS_COMPAT_NODE_MODULE_v9cj2j9732f.createRequire(import.meta.url);
12
12
  import {
13
13
  dirname,
14
14
  join
15
- } from "./chunk-W4J4CLIT.js";
15
+ } from "./chunk-MLWJ3HUW.js";
16
16
 
17
17
  // ../../core/src/shared/utils/module.ts
18
18
  import { fileURLToPath, pathToFileURL } from "node:url";
19
19
 
20
- // ../../node_modules/exsolve/dist/index.mjs
20
+ // ../../../node_modules/exsolve/dist/index.mjs
21
21
  import assert from "node:assert";
22
22
  import v8 from "node:v8";
23
23
  import { format, inspect } from "node:util";
@@ -1,16 +1,16 @@
1
- import CJS_COMPAT_NODE_URL_v9cj2j9732f from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_v9cj2j9732f from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_v9cj2j9732f from "node:module";
1
+ import CJS_COMPAT_NODE_URL_g9bstawb5be from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_g9bstawb5be from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_g9bstawb5be from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_v9cj2j9732f.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_v9cj2j9732f.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_v9cj2j9732f.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_g9bstawb5be.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_g9bstawb5be.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_g9bstawb5be.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
 
13
- // ../../node_modules/pathe/dist/shared/pathe.ff20891b.mjs
13
+ // ../../../node_modules/pathe/dist/shared/pathe.ff20891b.mjs
14
14
  var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
15
15
  function normalizeWindowsPath(input = "") {
16
16
  return input && input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
@@ -1,17 +1,18 @@
1
- import CJS_COMPAT_NODE_URL_v9cj2j9732f from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_v9cj2j9732f from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_v9cj2j9732f from "node:module";
1
+ import CJS_COMPAT_NODE_URL_g9bstawb5be from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_g9bstawb5be from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_g9bstawb5be from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_v9cj2j9732f.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_v9cj2j9732f.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_v9cj2j9732f.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_g9bstawb5be.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_g9bstawb5be.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_g9bstawb5be.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
 
13
13
  // ../../core/src/component-testing/constants.ts
14
- var ADDON_ID = "storybook/interactions", PANEL_ID = `${ADDON_ID}/panel`, DOCUMENTATION_LINK = "writing-tests/integrations/vitest-addon", DOCUMENTATION_DISCREPANCY_LINK = `${DOCUMENTATION_LINK}#what-happens-when-there-are-different-test-results-in-multiple-environments`;
14
+ var ADDON_ID = "storybook/interactions", PANEL_ID = `${ADDON_ID}/panel`;
15
+ var DOCUMENTATION_LINK = "writing-tests/integrations/vitest-addon", DOCUMENTATION_DISCREPANCY_LINK = `${DOCUMENTATION_LINK}#what-happens-when-there-are-different-test-results-in-multiple-environments`;
15
16
 
16
17
  // ../a11y/src/constants.ts
17
18
  var ADDON_ID2 = "storybook/a11y", PANEL_ID2 = `${ADDON_ID2}/panel`;
@@ -1,23 +1,23 @@
1
- import CJS_COMPAT_NODE_URL_v9cj2j9732f from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_v9cj2j9732f from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_v9cj2j9732f from "node:module";
1
+ import CJS_COMPAT_NODE_URL_g9bstawb5be from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_g9bstawb5be from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_g9bstawb5be from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_v9cj2j9732f.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_v9cj2j9732f.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_v9cj2j9732f.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_g9bstawb5be.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_g9bstawb5be.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_g9bstawb5be.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  ADDON_ID
14
- } from "./chunk-VNE6XYUJ.js";
14
+ } from "./chunk-NYIBTNKB.js";
15
15
  import {
16
16
  require_picocolors
17
- } from "./chunk-5XBMJ6BR.js";
17
+ } from "./chunk-QKMOXRYO.js";
18
18
  import {
19
19
  __toESM
20
- } from "./chunk-H55ZHNTN.js";
20
+ } from "./chunk-X2L4WX7O.js";
21
21
 
22
22
  // src/logger.ts
23
23
  var import_picocolors = __toESM(require_picocolors(), 1);
@@ -28,7 +28,7 @@ var log = (message) => {
28
28
  );
29
29
  };
30
30
 
31
- // ../../node_modules/es-toolkit/dist/function/noop.mjs
31
+ // ../../../node_modules/es-toolkit/dist/function/noop.mjs
32
32
  function noop() {
33
33
  }
34
34
 
@@ -1,21 +1,21 @@
1
- import CJS_COMPAT_NODE_URL_v9cj2j9732f from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_v9cj2j9732f from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_v9cj2j9732f from "node:module";
1
+ import CJS_COMPAT_NODE_URL_g9bstawb5be from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_g9bstawb5be from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_g9bstawb5be from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_v9cj2j9732f.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_v9cj2j9732f.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_v9cj2j9732f.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_g9bstawb5be.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_g9bstawb5be.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_g9bstawb5be.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  __commonJS
14
- } from "./chunk-H55ZHNTN.js";
14
+ } from "./chunk-X2L4WX7O.js";
15
15
 
16
- // ../../node_modules/picocolors/picocolors.js
16
+ // ../../../node_modules/picocolors/picocolors.js
17
17
  var require_picocolors = __commonJS({
18
- "../../node_modules/picocolors/picocolors.js"(exports, module) {
18
+ "../../../node_modules/picocolors/picocolors.js"(exports, module) {
19
19
  var p = process || {}, argv = p.argv || [], env = p.env || {}, isColorSupported = !(env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI), formatter = (open, close, replace = open) => (input) => {
20
20
  let string = "" + input, index = string.indexOf(close, open.length);
21
21
  return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_v9cj2j9732f from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_v9cj2j9732f from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_v9cj2j9732f from "node:module";
1
+ import CJS_COMPAT_NODE_URL_g9bstawb5be from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_g9bstawb5be from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_g9bstawb5be from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_v9cj2j9732f.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_v9cj2j9732f.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_v9cj2j9732f.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_g9bstawb5be.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_g9bstawb5be.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_g9bstawb5be.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
package/dist/manager.js CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  STORYBOOK_ADDON_TEST_CHANNEL,
11
11
  TEST_PROVIDER_ID,
12
12
  storeOptions
13
- } from "./_browser-chunks/chunk-TJXI7EIW.js";
13
+ } from "./_browser-chunks/chunk-26KZTIUQ.js";
14
14
 
15
15
  // src/manager.tsx
16
16
  import React5, { useState as useState3 } from "react";
@@ -86,7 +86,7 @@ import React4 from "react";
86
86
  // src/use-test-provider-state.ts
87
87
  import { useCallback, useEffect, useMemo, useRef, useState } from "react";
88
88
 
89
- // ../../node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
89
+ // ../../../node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
90
90
  function isPlainObject(value) {
91
91
  if (!value || typeof value != "object")
92
92
  return !1;
@@ -94,25 +94,25 @@ function isPlainObject(value) {
94
94
  return proto === null || proto === Object.prototype || Object.getPrototypeOf(proto) === null ? Object.prototype.toString.call(value) === "[object Object]" : !1;
95
95
  }
96
96
 
97
- // ../../node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
97
+ // ../../../node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
98
98
  function getSymbols(object) {
99
99
  return Object.getOwnPropertySymbols(object).filter((symbol) => Object.prototype.propertyIsEnumerable.call(object, symbol));
100
100
  }
101
101
 
102
- // ../../node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
102
+ // ../../../node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
103
103
  function getTag(value) {
104
104
  return value == null ? value === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(value);
105
105
  }
106
106
 
107
- // ../../node_modules/es-toolkit/dist/compat/_internal/tags.mjs
107
+ // ../../../node_modules/es-toolkit/dist/compat/_internal/tags.mjs
108
108
  var regexpTag = "[object RegExp]", stringTag = "[object String]", numberTag = "[object Number]", booleanTag = "[object Boolean]", argumentsTag = "[object Arguments]", symbolTag = "[object Symbol]", dateTag = "[object Date]", mapTag = "[object Map]", setTag = "[object Set]", arrayTag = "[object Array]", functionTag = "[object Function]", arrayBufferTag = "[object ArrayBuffer]", objectTag = "[object Object]", errorTag = "[object Error]", dataViewTag = "[object DataView]", uint8ArrayTag = "[object Uint8Array]", uint8ClampedArrayTag = "[object Uint8ClampedArray]", uint16ArrayTag = "[object Uint16Array]", uint32ArrayTag = "[object Uint32Array]", bigUint64ArrayTag = "[object BigUint64Array]", int8ArrayTag = "[object Int8Array]", int16ArrayTag = "[object Int16Array]", int32ArrayTag = "[object Int32Array]", bigInt64ArrayTag = "[object BigInt64Array]", float32ArrayTag = "[object Float32Array]", float64ArrayTag = "[object Float64Array]";
109
109
 
110
- // ../../node_modules/es-toolkit/dist/compat/util/eq.mjs
110
+ // ../../../node_modules/es-toolkit/dist/compat/util/eq.mjs
111
111
  function eq(value, other) {
112
112
  return value === other || Number.isNaN(value) && Number.isNaN(other);
113
113
  }
114
114
 
115
- // ../../node_modules/es-toolkit/dist/predicate/isEqualWith.mjs
115
+ // ../../../node_modules/es-toolkit/dist/predicate/isEqualWith.mjs
116
116
  function isEqualWith(a, b, areValuesEqual) {
117
117
  return isEqualWithImpl(a, b, void 0, void 0, void 0, void 0, areValuesEqual);
118
118
  }
@@ -235,11 +235,11 @@ function areObjectsEqual(a, b, stack, areValuesEqual) {
235
235
  }
236
236
  }
237
237
 
238
- // ../../node_modules/es-toolkit/dist/function/noop.mjs
238
+ // ../../../node_modules/es-toolkit/dist/function/noop.mjs
239
239
  function noop() {
240
240
  }
241
241
 
242
- // ../../node_modules/es-toolkit/dist/predicate/isEqual.mjs
242
+ // ../../../node_modules/es-toolkit/dist/predicate/isEqual.mjs
243
243
  function isEqual(a, b) {
244
244
  return isEqualWith(a, b, noop);
245
245
  }
@@ -533,8 +533,8 @@ var Container = styled4.div(({ inContextMenu }) => ({
533
533
  });
534
534
  }
535
535
  },
536
- React3.createElement(TestStatusIcon, { status: componentTestStatusIcon, isRunning }),
537
- componentTestStatusValueToStoryIds["status-value:error"].length + componentTestStatusValueToStoryIds["status-value:warning"].length || null
536
+ componentTestStatusValueToStoryIds["status-value:error"].length + componentTestStatusValueToStoryIds["status-value:warning"].length || null,
537
+ React3.createElement(TestStatusIcon, { status: componentTestStatusIcon, isRunning })
538
538
  )), !entry && React3.createElement(ActionList.Item, null, React3.createElement(ActionList.Action, { as: "label", readOnly: isRunning, ariaLabel: !1 }, React3.createElement(ActionList.Icon, null, React3.createElement(
539
539
  Form.Checkbox,
540
540
  {
@@ -559,14 +559,14 @@ var Container = styled4.div(({ inContextMenu }) => ({
559
559
  asChild: !0,
560
560
  ariaLabel: isRunning ? "Open coverage report (testing still in progress)" : `Open coverage report (${currentRun.coverageSummary.percentage}% coverage)`
561
561
  },
562
- React3.createElement("a", { href: "/coverage/index.html", target: "_blank" }, React3.createElement(
562
+ React3.createElement("a", { href: "/coverage/index.html", target: "_blank" }, currentRun.coverageSummary.percentage, "%", React3.createElement(
563
563
  TestStatusIcon,
564
564
  {
565
565
  isRunning,
566
566
  percentage: currentRun.coverageSummary.percentage,
567
567
  status: currentRun.coverageSummary.status
568
568
  }
569
- ), currentRun.coverageSummary.percentage, "%")
569
+ ))
570
570
  ) : React3.createElement(
571
571
  ActionList.Button,
572
572
  {
@@ -604,8 +604,8 @@ var Container = styled4.div(({ inContextMenu }) => ({
604
604
  });
605
605
  }
606
606
  },
607
- React3.createElement(TestStatusIcon, { status: a11yStatusIcon, isRunning }),
608
- a11yStatusValueToStoryIds["status-value:error"].length + a11yStatusValueToStoryIds["status-value:warning"].length || null
607
+ a11yStatusValueToStoryIds["status-value:error"].length + a11yStatusValueToStoryIds["status-value:warning"].length || null,
608
+ React3.createElement(TestStatusIcon, { status: a11yStatusIcon, isRunning })
609
609
  ))));
610
610
  };
611
611