aboutsummaryrefslogtreecommitdiffstats
path: root/vanilla/node_modules/vitest/dist/chunks/benchmark.B3N2zMcH.js
diff options
context:
space:
mode:
authorAdam Mathes <adam@adammathes.com>2026-02-14 14:46:37 -0800
committerAdam Mathes <adam@adammathes.com>2026-02-14 14:46:37 -0800
commitafa87af01c79a9baa539f2992d32154d2a4739bd (patch)
tree92c7416db734270a2fee1d72ee9cc119379ff8e1 /vanilla/node_modules/vitest/dist/chunks/benchmark.B3N2zMcH.js
parent3b927e84d200402281f68181cd4253bc77e5528d (diff)
downloadneko-afa87af01c79a9baa539f2992d32154d2a4739bd.tar.gz
neko-afa87af01c79a9baa539f2992d32154d2a4739bd.tar.bz2
neko-afa87af01c79a9baa539f2992d32154d2a4739bd.zip
task: delete vanilla js prototype\n\n- Removed vanilla/ directory and web/dist/vanilla directory\n- Updated Makefile, Dockerfile, and CI workflow to remove vanilla references\n- Cleaned up web/web.go to remove vanilla embed and routes\n- Verified build and tests pass\n\nCloses NK-2tcnmq
Diffstat (limited to 'vanilla/node_modules/vitest/dist/chunks/benchmark.B3N2zMcH.js')
-rw-r--r--vanilla/node_modules/vitest/dist/chunks/benchmark.B3N2zMcH.js40
1 files changed, 0 insertions, 40 deletions
diff --git a/vanilla/node_modules/vitest/dist/chunks/benchmark.B3N2zMcH.js b/vanilla/node_modules/vitest/dist/chunks/benchmark.B3N2zMcH.js
deleted file mode 100644
index f51879c..0000000
--- a/vanilla/node_modules/vitest/dist/chunks/benchmark.B3N2zMcH.js
+++ /dev/null
@@ -1,40 +0,0 @@
-import { getCurrentSuite } from '@vitest/runner';
-import { createChainable } from '@vitest/runner/utils';
-import { noop } from '@vitest/utils/helpers';
-import { g as getWorkerState } from './utils.DvEY5TfP.js';
-
-const benchFns = /* @__PURE__ */ new WeakMap();
-const benchOptsMap = /* @__PURE__ */ new WeakMap();
-function getBenchOptions(key) {
- return benchOptsMap.get(key);
-}
-function getBenchFn(key) {
- return benchFns.get(key);
-}
-const bench = createBenchmark(function(name, fn = noop, options = {}) {
- if (getWorkerState().config.mode !== "benchmark") throw new Error("`bench()` is only available in benchmark mode.");
- const task = getCurrentSuite().task(formatName(name), {
- ...this,
- meta: { benchmark: true }
- });
- benchFns.set(task, fn);
- benchOptsMap.set(task, options);
- // vitest runner sets mode to `todo` if handler is not passed down
- // but we store handler separetly
- if (!this.todo && task.mode === "todo") task.mode = "run";
-});
-function createBenchmark(fn) {
- const benchmark = createChainable([
- "skip",
- "only",
- "todo"
- ], fn);
- benchmark.skipIf = (condition) => condition ? benchmark.skip : benchmark;
- benchmark.runIf = (condition) => condition ? benchmark : benchmark.skip;
- return benchmark;
-}
-function formatName(name) {
- return typeof name === "string" ? name : typeof name === "function" ? name.name || "<anonymous>" : String(name);
-}
-
-export { getBenchOptions as a, bench as b, getBenchFn as g };