aboutsummaryrefslogtreecommitdiffstats
path: root/vanilla/node_modules/@vitest/mocker/dist/register.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/mocker/dist/register.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/mocker/dist/register.js')
-rw-r--r--vanilla/node_modules/@vitest/mocker/dist/register.js41
1 files changed, 0 insertions, 41 deletions
diff --git a/vanilla/node_modules/@vitest/mocker/dist/register.js b/vanilla/node_modules/@vitest/mocker/dist/register.js
deleted file mode 100644
index 841b687..0000000
--- a/vanilla/node_modules/@vitest/mocker/dist/register.js
+++ /dev/null
@@ -1,41 +0,0 @@
-import { createMockInstance } from '@vitest/spy';
-import { M as ModuleMocker, r as rpc, c as createCompilerHints, h as hot } from './chunk-mocker.js';
-import './index.js';
-import './chunk-registry.js';
-import './chunk-pathe.M-eThtNZ.js';
-
-function registerModuleMocker(interceptor) {
- const mocker = new ModuleMocker(interceptor(__VITEST_GLOBAL_THIS_ACCESSOR__), {
- resolveId(id, importer) {
- return rpc("vitest:mocks:resolveId", {
- id,
- importer
- });
- },
- resolveMock(id, importer, options) {
- return rpc("vitest:mocks:resolveMock", {
- id,
- importer,
- options
- });
- },
- async invalidate(ids) {
- return rpc("vitest:mocks:invalidate", { ids });
- }
- }, createMockInstance, { root: __VITEST_MOCKER_ROOT__ });
- globalThis[__VITEST_GLOBAL_THIS_ACCESSOR__] = mocker;
- registerNativeFactoryResolver(mocker);
- return createCompilerHints({ globalThisKey: __VITEST_GLOBAL_THIS_ACCESSOR__ });
-}
-function registerNativeFactoryResolver(mocker) {
- hot.on("vitest:interceptor:resolve", async (url) => {
- const exports$1 = await mocker.resolveFactoryModule(url);
- const keys = Object.keys(exports$1);
- hot.send("vitest:interceptor:resolved", {
- url,
- keys
- });
- });
-}
-
-export { registerModuleMocker, registerNativeFactoryResolver };