unplugin-saykit 0.4.1 → 0.5.0

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/dist/bun.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as src_default } from "./src-sSruAedT.mjs";
1
+ import { t as src_default } from "./src-rQleSe4Y.mjs";
2
2
  //#region src/bun.ts
3
3
  var bun_default = src_default.bun;
4
4
  //#endregion
@@ -1,6 +1,4 @@
1
- import * as _$unplugin from "unplugin";
2
-
3
1
  //#region src/esbuild.d.ts
4
- declare const _default: (options?: undefined) => _$unplugin.EsbuildPlugin;
2
+ declare const _default: (options?: undefined) => import("unplugin").EsbuildPlugin;
5
3
  //#endregion
6
4
  export { _default as default };
package/dist/esbuild.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as src_default } from "./src-sSruAedT.mjs";
1
+ import { t as src_default } from "./src-rQleSe4Y.mjs";
2
2
  //#region src/esbuild.ts
3
3
  var esbuild_default = src_default.esbuild;
4
4
  //#endregion
package/dist/farm.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as src_default } from "./src-sSruAedT.mjs";
1
+ import { t as src_default } from "./src-rQleSe4Y.mjs";
2
2
  //#region src/farm.ts
3
3
  var farm_default = src_default.farm;
4
4
  //#endregion
package/dist/index.d.mts CHANGED
@@ -1,6 +1,4 @@
1
- import * as _$unplugin from "unplugin";
2
-
3
1
  //#region src/index.d.ts
4
- declare const _default: _$unplugin.UnpluginInstance<undefined, boolean>;
2
+ declare const _default: import("unplugin").UnpluginInstance<undefined, boolean>;
5
3
  //#endregion
6
4
  export { _default as default };
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { t as src_default } from "./src-sSruAedT.mjs";
1
+ import { t as src_default } from "./src-rQleSe4Y.mjs";
2
2
  export { src_default as default };
@@ -1 +1 @@
1
- export { };
1
+ export {}
@@ -239,7 +239,7 @@ const plugin$5 = {
239
239
  test: test$5
240
240
  };
241
241
  const SPACE$1 = " ";
242
- const OBJECT_NAMES = new Set(["DOMStringMap", "NamedNodeMap"]);
242
+ const OBJECT_NAMES = /* @__PURE__ */ new Set(["DOMStringMap", "NamedNodeMap"]);
243
243
  const ARRAY_REGEXP = /^(?:HTML\w*Collection|NodeList)$/;
244
244
  function testName(name) {
245
245
  return OBJECT_NAMES.has(name) || ARRAY_REGEXP.test(name);
@@ -530,7 +530,7 @@ function requireReactIs$1() {
530
530
  return reactIs$1.exports;
531
531
  }
532
532
  var reactIsExports$1 = requireReactIs$1();
533
- var ReactIs19 = /* @__PURE__ */ _mergeNamespaces({
533
+ var ReactIs19 = /*#__PURE__*/ _mergeNamespaces({
534
534
  __proto__: null,
535
535
  default: /* @__PURE__ */ getDefaultExportFromCjs$2(reactIsExports$1)
536
536
  }, [reactIsExports$1]);
@@ -642,7 +642,7 @@ function requireReactIs() {
642
642
  return reactIs.exports;
643
643
  }
644
644
  var reactIsExports = requireReactIs();
645
- var ReactIs18 = /* @__PURE__ */ _mergeNamespaces({
645
+ var ReactIs18 = /*#__PURE__*/ _mergeNamespaces({
646
646
  __proto__: null,
647
647
  default: /* @__PURE__ */ getDefaultExportFromCjs$2(reactIsExports)
648
648
  }, [reactIsExports]);
@@ -1684,7 +1684,7 @@ function getCallLastIndex(code) {
1684
1684
  }
1685
1685
  function isNegativeNaN(val) {
1686
1686
  if (!Number.isNaN(val)) return false;
1687
- const f64 = new Float64Array(1);
1687
+ const f64 = /* @__PURE__ */ new Float64Array(1);
1688
1688
  f64[0] = val;
1689
1689
  return new Uint32Array(f64.buffer)[1] >>> 31 === 1;
1690
1690
  }
@@ -2338,7 +2338,7 @@ function requireBuild() {
2338
2338
  }
2339
2339
  return build;
2340
2340
  }
2341
- var diffSequences = /* @__PURE__ */ getDefaultExportFromCjs$1(/* @__PURE__ */ requireBuild());
2341
+ var diffSequences = /*@__PURE__*/ getDefaultExportFromCjs$1(/* @__PURE__ */ requireBuild());
2342
2342
  function formatTrailingSpaces(line, trailingSpaceFormatter) {
2343
2343
  return line.replace(/\s+$/, (match) => trailingSpaceFormatter(match));
2344
2344
  }
@@ -3228,8 +3228,8 @@ const isAbsolute = function(p) {
3228
3228
  //#region ../../node_modules/.pnpm/@vitest+utils@4.1.10/node_modules/@vitest/utils/dist/source-map.js
3229
3229
  var comma = ",".charCodeAt(0);
3230
3230
  var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
3231
- var intToChar = new Uint8Array(64);
3232
- var charToInt = new Uint8Array(128);
3231
+ var intToChar = /* @__PURE__ */ new Uint8Array(64);
3232
+ var charToInt = /* @__PURE__ */ new Uint8Array(128);
3233
3233
  for (let i = 0; i < chars.length; i++) {
3234
3234
  const c = chars.charCodeAt(i);
3235
3235
  intToChar[i] = c;
@@ -3676,7 +3676,8 @@ var TestFixtures = class TestFixtures {
3676
3676
  extend(runner, userFixtures) {
3677
3677
  const { suite } = getCurrentSuite();
3678
3678
  const isTopLevel = !suite || suite.file === suite;
3679
- return new TestFixtures(this.parseUserFixtures(runner, userFixtures, isTopLevel));
3679
+ const registrations = this.parseUserFixtures(runner, userFixtures, isTopLevel);
3680
+ return new TestFixtures(registrations);
3680
3681
  }
3681
3682
  get(suite) {
3682
3683
  let currentSuite = suite;
@@ -3970,10 +3971,6 @@ function splitByComma(s) {
3970
3971
  if (lastToken) result.push(lastToken);
3971
3972
  return result;
3972
3973
  }
3973
- let _test;
3974
- function getCurrentTest() {
3975
- return _test;
3976
- }
3977
3974
  const kChainableContext = Symbol("kChainableContext");
3978
3975
  function getChainableContext(chainable) {
3979
3976
  return chainable?.[kChainableContext];
@@ -4120,14 +4117,6 @@ function afterEach(fn, timeout) {
4120
4117
  };
4121
4118
  return getCurrentSuite().on("afterEach", withTimeout(wrapper, timeout ?? getDefaultHookTimeout(), true, /* @__PURE__ */ new Error("STACK_TRACE_ERROR"), abortIfTimeout));
4122
4119
  }
4123
- createTestHook("onTestFailed", (test, handler, timeout) => {
4124
- test.onFailed ||= [];
4125
- test.onFailed.push(withTimeout(handler, timeout ?? getDefaultHookTimeout(), true, /* @__PURE__ */ new Error("STACK_TRACE_ERROR"), abortIfTimeout));
4126
- });
4127
- createTestHook("onTestFinished", (test, handler, timeout) => {
4128
- test.onFinished ||= [];
4129
- test.onFinished.push(withTimeout(handler, timeout ?? getDefaultHookTimeout(), true, /* @__PURE__ */ new Error("STACK_TRACE_ERROR"), abortIfTimeout));
4130
- });
4131
4120
  /**
4132
4121
  * Registers a callback function that wraps around all tests within the current suite.
4133
4122
  * The callback receives a `runSuite` function that must be called to run the suite's tests.
@@ -4227,14 +4216,6 @@ function withSuiteFixtures(suiteHook, fn, context, stackTraceError, contextIndex
4227
4216
  })();
4228
4217
  };
4229
4218
  }
4230
- function createTestHook(name, handler) {
4231
- return (fn, timeout) => {
4232
- assertTypes(fn, `"${name}" callback`, ["function"]);
4233
- const current = getCurrentTest();
4234
- if (!current) throw new Error(`Hook ${name}() can only be called inside a test`);
4235
- return handler(current, fn, timeout);
4236
- };
4237
- }
4238
4219
  function findTestFileStackTrace(testFilePath, error) {
4239
4220
  const lines = error.split("\n").slice(1);
4240
4221
  for (const line of lines) {
@@ -4325,7 +4306,6 @@ const suite = createSuite();
4325
4306
  * ```
4326
4307
  */
4327
4308
  const test$2 = createTest(function(name, optionsOrFn, optionsOrTest) {
4328
- if (getCurrentTest()) throw new Error("Calling the test function inside another test function is not allowed. Please put it inside \"describe\" or \"suite\" so it can be properly collected.");
4329
4309
  getCurrentSuite().test.fn.call(this, formatName(name), optionsOrFn, optionsOrTest);
4330
4310
  });
4331
4311
  /**
@@ -4402,7 +4382,6 @@ function assert$3(condition, message) {
4402
4382
  }
4403
4383
  function getRunner() {
4404
4384
  assert$3(runner, "the runner");
4405
- return runner;
4406
4385
  }
4407
4386
  function getCurrentSuite() {
4408
4387
  const currentSuite = collectorContext.currentSuite || defaultSuite;
@@ -4592,7 +4571,6 @@ function withAwaitAsyncAssertions(fn, task) {
4592
4571
  }
4593
4572
  function createSuite() {
4594
4573
  function suiteFn(name, factoryOrOptions, optionsOrFactory) {
4595
- if (getCurrentTest()) throw new Error("Calling the suite function inside test function is not allowed. It can be only called at the top level or inside another suite function.");
4596
4574
  const currentSuite = collectorContext.currentSuite || defaultSuite;
4597
4575
  let { options, handler: factory } = parseArguments(factoryOrOptions, optionsOrFactory);
4598
4576
  const isConcurrentSpecified = options.concurrent || this.concurrent || options.sequential === false;
@@ -4602,7 +4580,7 @@ function createSuite() {
4602
4580
  ...parentOptions,
4603
4581
  ...options
4604
4582
  };
4605
- const shuffle = this.shuffle ?? options.shuffle ?? currentSuite?.options?.shuffle ?? runner?.config.sequence.shuffle;
4583
+ const shuffle = this.shuffle ?? options.shuffle ?? currentSuite?.options?.shuffle ?? void 0;
4606
4584
  if (shuffle != null) options.shuffle = shuffle;
4607
4585
  let mode = this.only ?? options.only ? "only" : this.skip ?? options.skip ? "skip" : this.todo ?? options.todo ? "todo" : "run";
4608
4586
  if (mode === "run" && !factory) mode = "todo";
@@ -4794,7 +4772,7 @@ function formatTitle(template, items, idx) {
4794
4772
  const isArrayKey = /^\d+$/.test(key);
4795
4773
  if (!isObjectItem && !isArrayKey) return `$${key}`;
4796
4774
  const arrayElement = isArrayKey ? objectAttr(items, key) : void 0;
4797
- return objDisplay$1(isObjectItem ? objectAttr(items[0], key, arrayElement) : arrayElement, { truncate: runner?.config?.chaiConfig?.truncateThreshold });
4775
+ return objDisplay$1(isObjectItem ? objectAttr(items[0], key, arrayElement) : arrayElement, { truncate: void 0 });
4798
4776
  });
4799
4777
  }
4800
4778
  let output = "";
@@ -4963,7 +4941,7 @@ function makeTimeoutError(isHook, timeout, stackTraceError) {
4963
4941
  }
4964
4942
  globalThis.performance ? globalThis.performance.now.bind(globalThis.performance) : Date.now;
4965
4943
  globalThis.performance ? globalThis.performance.now.bind(globalThis.performance) : Date.now;
4966
- const unixNow = Date.now;
4944
+ Date.now;
4967
4945
  const { clearTimeout, setTimeout: setTimeout$1 } = getSafeTimers();
4968
4946
  const packs = /* @__PURE__ */ new Map();
4969
4947
  const eventsPacks = [];
@@ -4990,21 +4968,6 @@ async function finishSendTasksUpdate(runner) {
4990
4968
  sendTasksUpdate(runner);
4991
4969
  await Promise.all(pendingTasksUpdates);
4992
4970
  }
4993
- function throttle(fn, ms) {
4994
- let last = 0;
4995
- let pendingCall;
4996
- return function call(...args) {
4997
- const now = unixNow();
4998
- if (now - last > ms) {
4999
- last = now;
5000
- clearTimeout(pendingCall);
5001
- pendingCall = void 0;
5002
- return fn.apply(this, args);
5003
- }
5004
- pendingCall ??= setTimeout$1(() => call.bind(this)(...args), ms);
5005
- };
5006
- }
5007
- throttle(sendTasksUpdate, 100);
5008
4971
  /**
5009
4972
  * @experimental
5010
4973
  * @advanced
@@ -5127,7 +5090,7 @@ function manageArtifactAttachment(attachment) {
5127
5090
  if (attachment.body != null) attachment.bodyEncoding ??= "base64";
5128
5091
  }
5129
5092
  //#endregion
5130
- //#region ../../node_modules/.pnpm/vitest@4.1.10_@types+node@25.9.5_@vitest+coverage-v8@4.1.10_vite@8.1.5_@types+node@25.9_6c64e63a23624bb0ddf000231a5c9a37/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.js
5093
+ //#region ../../node_modules/.pnpm/vitest@4.1.10_@types+node@25.9.5_@vitest+coverage-v8@4.1.10_vite@8.1.5_@types+node@25.9_0205e51af28fbed02c60077e408c748f/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.js
5131
5094
  const NAME_WORKER_STATE = "__vitest_worker__";
5132
5095
  function getWorkerState() {
5133
5096
  const workerState = globalThis[NAME_WORKER_STATE];
@@ -5491,7 +5454,7 @@ function copyOriginalStaticProperties(mock, original) {
5491
5454
  Object.defineProperty(mock, key, descriptor);
5492
5455
  }
5493
5456
  }
5494
- const ignoreProperties = new Set([
5457
+ const ignoreProperties = /* @__PURE__ */ new Set([
5495
5458
  "length",
5496
5459
  "name",
5497
5460
  "prototype",
@@ -6976,7 +6939,8 @@ function addChainableMethod(ctx, name, method, chainingBehavior) {
6976
6939
  Object.setPrototypeOf(chainableMethodWrapper, prototype);
6977
6940
  } else Object.getOwnPropertyNames(ctx).forEach(function(asserterName) {
6978
6941
  if (excludeNames.indexOf(asserterName) !== -1) return;
6979
- Object.defineProperty(chainableMethodWrapper, asserterName, Object.getOwnPropertyDescriptor(ctx, asserterName));
6942
+ let pd = Object.getOwnPropertyDescriptor(ctx, asserterName);
6943
+ Object.defineProperty(chainableMethodWrapper, asserterName, pd);
6980
6944
  });
6981
6945
  transferFlags(this, chainableMethodWrapper);
6982
6946
  return proxify(chainableMethodWrapper);
@@ -9359,8 +9323,10 @@ const JestChaiExpect = (chai, utils) => {
9359
9323
  if (promise === "rejects") utils.flag(this, "object", () => {
9360
9324
  throw object;
9361
9325
  });
9362
- else if (promise === "resolves" && typeof object !== "function") if (!isNot) throw new AssertionError(utils.flag(this, "message") || "expected promise to throw an error, but it didn't", { showDiff: false }, utils.flag(this, "ssfi"));
9363
- else return;
9326
+ else if (promise === "resolves" && typeof object !== "function") if (!isNot) {
9327
+ const message = utils.flag(this, "message") || "expected promise to throw an error, but it didn't";
9328
+ throw new AssertionError(message, { showDiff: false }, utils.flag(this, "ssfi"));
9329
+ } else return;
9364
9330
  _super.apply(this, args);
9365
9331
  };
9366
9332
  });
@@ -9419,7 +9385,8 @@ const JestChaiExpect = (chai, utils) => {
9419
9385
  actualSubset,
9420
9386
  false
9421
9387
  ]);
9422
- throw new AssertionError(stripped === 0 ? msg : `${msg}\n(${stripped} matching ${stripped === 1 ? "property" : "properties"} omitted from actual)`, {
9388
+ const message = stripped === 0 ? msg : `${msg}\n(${stripped} matching ${stripped === 1 ? "property" : "properties"} omitted from actual)`;
9389
+ throw new AssertionError(message, {
9423
9390
  showDiff: true,
9424
9391
  expected,
9425
9392
  actual: actualSubset
@@ -9652,8 +9619,10 @@ const JestChaiExpect = (chai, utils) => {
9652
9619
  const isNot = utils.flag(this, "negate");
9653
9620
  let thrown = null;
9654
9621
  if (promise === "rejects") thrown = obj;
9655
- else if (promise === "resolves" && typeof obj !== "function") if (!isNot) throw new AssertionError(utils.flag(this, "message") || "expected promise to throw an error, but it didn't", { showDiff: false }, utils.flag(this, "ssfi"));
9656
- else return;
9622
+ else if (promise === "resolves" && typeof obj !== "function") if (!isNot) {
9623
+ const message = utils.flag(this, "message") || "expected promise to throw an error, but it didn't";
9624
+ throw new AssertionError(message, { showDiff: false }, utils.flag(this, "ssfi"));
9625
+ } else return;
9657
9626
  else {
9658
9627
  let isThrow = false;
9659
9628
  try {
@@ -9662,7 +9631,10 @@ const JestChaiExpect = (chai, utils) => {
9662
9631
  isThrow = true;
9663
9632
  thrown = err;
9664
9633
  }
9665
- if (!isThrow && !isNot) throw new AssertionError(utils.flag(this, "message") || "expected function to throw an error, but it didn't", { showDiff: false }, utils.flag(this, "ssfi"));
9634
+ if (!isThrow && !isNot) {
9635
+ const message = utils.flag(this, "message") || "expected function to throw an error, but it didn't";
9636
+ throw new AssertionError(message, { showDiff: false }, utils.flag(this, "ssfi"));
9637
+ }
9666
9638
  }
9667
9639
  if (typeof expected === "function") {
9668
9640
  const name = expected.name || expected.prototype.constructor.name;
@@ -9732,7 +9704,8 @@ const JestChaiExpect = (chai, utils) => {
9732
9704
  `expected "${spyName}" to not ${action} with: #{exp}`,
9733
9705
  value
9734
9706
  ]);
9735
- throw new AssertionError(formatReturns(spy, action === "return" ? spy.mock.results : spy.mock.settledResults, msg, value));
9707
+ const results = action === "return" ? spy.mock.results : spy.mock.settledResults;
9708
+ throw new AssertionError(formatReturns(spy, results, msg, value));
9736
9709
  }
9737
9710
  });
9738
9711
  });
@@ -9798,7 +9771,7 @@ const JestChaiExpect = (chai, utils) => {
9798
9771
  if (typeof result !== "function") return result instanceof chai.Assertion ? proxy : result;
9799
9772
  return (...args) => {
9800
9773
  utils.flag(this, "_name", key);
9801
- return recordAsyncExpect(test, Promise.resolve(obj).then((value) => {
9774
+ const promise = Promise.resolve(obj).then((value) => {
9802
9775
  utils.flag(this, "object", value);
9803
9776
  return result.call(this, ...args);
9804
9777
  }, (err) => {
@@ -9808,7 +9781,8 @@ const JestChaiExpect = (chai, utils) => {
9808
9781
  }).catch((err) => {
9809
9782
  if (isError(err) && error.stack) err.stack = error.stack.replace(error.message, err.message);
9810
9783
  throw err;
9811
- }), createAssertionMessage(utils, this, !!args.length), error, utils.flag(this, "soft"));
9784
+ });
9785
+ return recordAsyncExpect(test, promise, createAssertionMessage(utils, this, !!args.length), error, utils.flag(this, "soft"));
9812
9786
  };
9813
9787
  } });
9814
9788
  return proxy;
@@ -9827,7 +9801,7 @@ const JestChaiExpect = (chai, utils) => {
9827
9801
  if (typeof result !== "function") return result instanceof chai.Assertion ? proxy : result;
9828
9802
  return (...args) => {
9829
9803
  utils.flag(this, "_name", key);
9830
- return recordAsyncExpect(test, Promise.resolve(wrapper).then((value) => {
9804
+ const promise = Promise.resolve(wrapper).then((value) => {
9831
9805
  throw new AssertionError(`promise resolved "${utils.inspect(value)}" instead of rejecting`, {
9832
9806
  showDiff: true,
9833
9807
  expected: /* @__PURE__ */ new Error("rejected promise"),
@@ -9839,7 +9813,8 @@ const JestChaiExpect = (chai, utils) => {
9839
9813
  }).catch((err) => {
9840
9814
  if (isError(err) && error.stack) err.stack = error.stack.replace(error.message, err.message);
9841
9815
  throw err;
9842
- }), createAssertionMessage(utils, this, !!args.length), error, utils.flag(this, "soft"));
9816
+ });
9817
+ return recordAsyncExpect(test, promise, createAssertionMessage(utils, this, !!args.length), error, utils.flag(this, "soft"));
9843
9818
  };
9844
9819
  } });
9845
9820
  return proxy;
@@ -10006,10 +9981,10 @@ function offsetToLineNumber(source, offset) {
10006
9981
  return line + 1;
10007
9982
  }
10008
9983
  //#endregion
10009
- //#region ../../node_modules/.pnpm/vitest@4.1.10_@types+node@25.9.5_@vitest+coverage-v8@4.1.10_vite@8.1.5_@types+node@25.9_6c64e63a23624bb0ddf000231a5c9a37/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.js
9984
+ //#region ../../node_modules/.pnpm/vitest@4.1.10_@types+node@25.9.5_@vitest+coverage-v8@4.1.10_vite@8.1.5_@types+node@25.9_0205e51af28fbed02c60077e408c748f/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.js
10010
9985
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
10011
9986
  //#endregion
10012
- //#region ../../node_modules/.pnpm/vitest@4.1.10_@types+node@25.9.5_@vitest+coverage-v8@4.1.10_vite@8.1.5_@types+node@25.9_6c64e63a23624bb0ddf000231a5c9a37/node_modules/vitest/dist/chunks/rpc.MzXet3jl.js
9987
+ //#region ../../node_modules/.pnpm/vitest@4.1.10_@types+node@25.9.5_@vitest+coverage-v8@4.1.10_vite@8.1.5_@types+node@25.9_0205e51af28fbed02c60077e408c748f/node_modules/vitest/dist/chunks/rpc.MzXet3jl.js
10013
9988
  const RealDate = Date;
10014
9989
  let now = null;
10015
9990
  var MockDate = class MockDate extends RealDate {
@@ -10103,7 +10078,7 @@ function requireNaturalCompare() {
10103
10078
  }
10104
10079
  return naturalCompare$1.exports;
10105
10080
  }
10106
- var naturalCompare = /* @__PURE__ */ getDefaultExportFromCjs(requireNaturalCompare());
10081
+ var naturalCompare = /*@__PURE__*/ getDefaultExportFromCjs(requireNaturalCompare());
10107
10082
  const serialize$1 = (val, config, indentation, depth, refs, printer) => {
10108
10083
  const name = val.getMockName();
10109
10084
  const nameString = name === "vi.fn()" ? "" : ` ${name}`;
@@ -10263,7 +10238,7 @@ function memo(fn) {
10263
10238
  };
10264
10239
  }
10265
10240
  async function saveInlineSnapshots(environment, snapshots) {
10266
- const MagicString = (await import("./magic-string.es-D9_CQFb8.mjs")).default;
10241
+ const MagicString = (await import("./magic-string.es-9AY6EGws.mjs")).default;
10267
10242
  const files = new Set(snapshots.map((i) => i.file));
10268
10243
  await Promise.all(Array.from(files).map(async (file) => {
10269
10244
  const snaps = snapshots.filter((i) => i.file === file);
@@ -10445,7 +10420,8 @@ var SnapshotState = class SnapshotState {
10445
10420
  }
10446
10421
  static async create(testFilePath, options) {
10447
10422
  const snapshotPath = await options.snapshotEnvironment.resolvePath(testFilePath);
10448
- return new SnapshotState(testFilePath, snapshotPath, await options.snapshotEnvironment.readSnapshotFile(snapshotPath), options);
10423
+ const content = await options.snapshotEnvironment.readSnapshotFile(snapshotPath);
10424
+ return new SnapshotState(testFilePath, snapshotPath, content, options);
10449
10425
  }
10450
10426
  get snapshotUpdateState() {
10451
10427
  return this._updateSnapshot;
@@ -10972,7 +10948,7 @@ function raceWith(promise, other) {
10972
10948
  }))]);
10973
10949
  }
10974
10950
  //#endregion
10975
- //#region ../../node_modules/.pnpm/vitest@4.1.10_@types+node@25.9.5_@vitest+coverage-v8@4.1.10_vite@8.1.5_@types+node@25.9_6c64e63a23624bb0ddf000231a5c9a37/node_modules/vitest/dist/chunks/test.DNmyFkvJ.js
10951
+ //#region ../../node_modules/.pnpm/vitest@4.1.10_@types+node@25.9.5_@vitest+coverage-v8@4.1.10_vite@8.1.5_@types+node@25.9_0205e51af28fbed02c60077e408c748f/node_modules/vitest/dist/chunks/test.DNmyFkvJ.js
10976
10952
  var fakeTimersSrc = {};
10977
10953
  var global$1;
10978
10954
  var hasRequiredGlobal;
@@ -12054,7 +12030,8 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`);
12054
12030
  const originalPerfDescriptor = Object.getOwnPropertyDescriptor(target, method);
12055
12031
  if (originalPerfDescriptor && originalPerfDescriptor.get && !originalPerfDescriptor.set) {
12056
12032
  Object.defineProperty(clock, `_${method}`, originalPerfDescriptor);
12057
- Object.defineProperty(target, method, Object.getOwnPropertyDescriptor(clock, method));
12033
+ const perfDescriptor = Object.getOwnPropertyDescriptor(clock, method);
12034
+ Object.defineProperty(target, method, perfDescriptor);
12058
12035
  } else target[method] = clock[method];
12059
12036
  } else {
12060
12037
  target[method] = function() {
@@ -12489,7 +12466,8 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`);
12489
12466
  clock.next();
12490
12467
  checkIsNearInfiniteLimit(clock, i);
12491
12468
  }
12492
- throw getInfiniteLoopError(clock, firstTimer(clock));
12469
+ const excessJob = firstTimer(clock);
12470
+ throw getInfiniteLoopError(clock, excessJob);
12493
12471
  };
12494
12472
  clock.runToFrame = function runToFrame() {
12495
12473
  return clock.tick(getTimeToNextFrame());
@@ -12523,7 +12501,8 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`);
12523
12501
  checkIsNearInfiniteLimit(clock, i);
12524
12502
  return;
12525
12503
  }
12526
- reject(getInfiniteLoopError(clock, firstTimer(clock)));
12504
+ const excessJob = firstTimer(clock);
12505
+ reject(getInfiniteLoopError(clock, excessJob));
12527
12506
  } catch (e) {
12528
12507
  reject(e);
12529
12508
  }
@@ -12594,7 +12573,8 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`);
12594
12573
  return clock;
12595
12574
  }
12596
12575
  function createIntervalTick(clock, delta) {
12597
- clock.attachedInterval = originalSetInterval(doIntervalTick.bind(null, clock, delta), delta);
12576
+ const intervalTick = doIntervalTick.bind(null, clock, delta);
12577
+ clock.attachedInterval = originalSetInterval(intervalTick, delta);
12598
12578
  }
12599
12579
  /**
12600
12580
  * @param {Config=} [config] Optional config
@@ -13590,7 +13570,7 @@ function createExpect(test) {
13590
13570
  const { assertionCalls } = getState(expect$1);
13591
13571
  setState({ assertionCalls: assertionCalls + 1 }, expect$1);
13592
13572
  const assert = expect(value, message);
13593
- const _test = test || getCurrentTest();
13573
+ const _test = test || void 0;
13594
13574
  if (_test) return assert.withTest(_test);
13595
13575
  else return assert;
13596
13576
  });
@@ -2,8 +2,8 @@
2
2
  var comma = ",".charCodeAt(0);
3
3
  var semicolon = ";".charCodeAt(0);
4
4
  var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
5
- var intToChar = new Uint8Array(64);
6
- var charToInt = new Uint8Array(128);
5
+ var intToChar = /* @__PURE__ */ new Uint8Array(64);
6
+ var charToInt = /* @__PURE__ */ new Uint8Array(128);
7
7
  for (let i = 0; i < chars.length; i++) {
8
8
  const c = chars.charCodeAt(i);
9
9
  intToChar[i] = c;
@@ -218,7 +218,7 @@ function getBtoa() {
218
218
  throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.");
219
219
  };
220
220
  }
221
- const btoa = /* @__PURE__ */ getBtoa();
221
+ const btoa = /*#__PURE__*/ getBtoa();
222
222
  var SourceMap = class {
223
223
  constructor(properties) {
224
224
  this.version = 3;