aboutsummaryrefslogtreecommitdiffstats
path: root/vanilla/node_modules/@vitest/mocker/dist/chunk-interceptor-native.js
diff options
context:
space:
mode:
Diffstat (limited to 'vanilla/node_modules/@vitest/mocker/dist/chunk-interceptor-native.js')
-rw-r--r--vanilla/node_modules/@vitest/mocker/dist/chunk-interceptor-native.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/vanilla/node_modules/@vitest/mocker/dist/chunk-interceptor-native.js b/vanilla/node_modules/@vitest/mocker/dist/chunk-interceptor-native.js
new file mode 100644
index 0000000..4b472cc
--- /dev/null
+++ b/vanilla/node_modules/@vitest/mocker/dist/chunk-interceptor-native.js
@@ -0,0 +1,15 @@
+import { r as rpc } from './chunk-mocker.js';
+
+class ModuleMockerServerInterceptor {
+ async register(module) {
+ await rpc("vitest:interceptor:register", module.toJSON());
+ }
+ async delete(id) {
+ await rpc("vitest:interceptor:delete", id);
+ }
+ async invalidate() {
+ await rpc("vitest:interceptor:invalidate");
+ }
+}
+
+export { ModuleMockerServerInterceptor as M };