@schmock/vue

Vue adapter for Schmock — Plugin and composables
3,693 1
Install
npm install @schmock/vue
Latest Version:2.6.0
Vue:3
License:MIT
Last Updated:Oct 4, 2026
Links: GitHub  ·  npm
Maintainer: khalic

@schmock/vue

Vue 3.5+ adapter for Schmock — a plugin and a composable that intercept fetch. It needs app.onUnmount, which Vue added in 3.5.

Part of Schmock — mock APIs from OpenAPI specs or hand-crafted routes.

Install

bun add -d @schmock/vue

Usage

import { createApp } from "vue";
import { schmock } from "@schmock/core";
import { schmockPlugin } from "@schmock/vue";

const mock = schmock();
mock("GET /users", [{ id: 1, name: "Alice" }]);

createApp(App).use(schmockPlugin, { mock });

Documentation

License

MIT © Khalic Lab

Related Packages

stepci

Automated API Testing and Quality Assurance

140,730 1,872
@pinia/testing

Testing module for Pinia

40,350,592 14,743
@scalar/nuxt

Nuxt module to render beautiful, interactive API documentation from OpenAPI/Swag...

187,898 16,296
vuepress-api-playground

The VuePress API Playground is a Vue.js component for showcasing and testing API...

1,650 4
@ahmttyydn/nuxt

Nuxt module to render beautiful, interactive API documentation from OpenAPI/Swag...

1,075 0

Version History

Version Released Vue License
2.6.0 ^3.5.0 MIT
2.5.0 ^3.5.0 MIT
2.4.1 ^3.5.0 MIT
2.4.0 ^3.5.0 MIT
2.3.1 ^3.5.0 MIT