@mocky-balboa/nuxt

Nuxt integration for Mocky Balboa. Mock your full-stack network requests in your test suites.
3,841 32
Install
npm install @mocky-balboa/nuxt
Latest Version:1.0.10
Vue:3
License:MIT
Last Updated:Aug 9, 2026
Links: GitHub  ·  npm
Maintainer: lewnelson

🥊 Mocky Balboa

A network mocking library for your SSR applications. Fixture http network requests on your server-side application for browser automation testing without having to modify your application logic.

Getting started

Check out the documentation to get started.

Server integrations

Browser automation tool support

Custom integrations

Don't see your framework? Create a custom server integration or a custom client integration. Alternatively submit a pull request or report an issue to add support for your framework.

Examples

Playwright example

import { expect } from "@playwright/test";
import { test } from "@mocky-balboa/playwright";

test("a route that performs server and client network requests", async ({ page, mocky }) => {
  // Mocks the request on both the client and the server
  mocky.route("**/api/endpoint", (route) => {
    return route.fulfill({
      status: 200,
      body: JSON.stringify({ message: "Hello, World!" }),
      headers: { "Content-Type": "application/json" },
    });
  }, {
    // Optionally configure the route
    // type: "both" to mock on both client and server (default behaviour)
    // type: "server-only" to mock on the server only
    // type: "client-only" to mock on the client only
  });

  await page.goto("http://localhost:3000");
});

More examples

See examples for example projects.

Contributing

See contributing for more information.

Related Packages

nuxt-define

One utility function for module authors to define compiler constants for all bui...

13,412,511
@lg2/nuxt3-module-create-dato-map

nuxt3-module-create-dato-map

2,869 0
nuxt-csurf

Nuxt Cross-Site Request Forgery (CSRF) Prevention

6,263,746 91
@bg-dev/nuxt-naiveui

Unofficial Naive UI module for Nuxt

144,316 187
@ztl-uwu/nuxt-content

Write your content inside your Nuxt app

34,108

Version History

Version Released Vue License
1.0.10 ^3.0 MIT
1.0.9 ^3.0 MIT
1.0.8 ^3.0 MIT
1.0.7 ^3.0 MIT
1.0.6 ^3.0 MIT
Pre-releases (28)
Version Released Vue License
1.0.10-canary.f284427 ^3.0 MIT
1.0.10-canary.6edeb97 ^3.0 MIT
1.0.10-canary.4d0599f ^3.0 MIT
1.0.10-canary.9e6db52 ^3.0 MIT
1.0.10-canary.5bed5e2 ^3.0 MIT