wdio-nuxt-service

This service helps you to launch your application when using Nuxt.
13,599 3
Install
npm install wdio-nuxt-service
Latest Version:1.0.1
Vue:3
License:MIT
Last Updated:Feb 9, 2026
Links: GitHub  ·  npm
Maintainer: wdio-user

WDIO Nuxt Service Tests

This service helps you to launch your application when using Nuxt as build tool. It automatically starts the Nuxt server using your nuxt.conf.js before launching the test.

Installation

If you are getting started with WebdriverIO you can use the configuration wizard to set everything up:

npm init wdio@latest .

It will detect your project as a Nuxt project and will install all necessary plugins for you. If you are adding this service on an existing setup, you can always install it via:

npm install wdio-nuxt-service --save-dev

Configuration

To enable the service, just add it to your services list in your wdio.conf.js file, e.g.:

// wdio.conf.js
export const config = {
    // ...
    services: ['nuxt'],
    // ...
};

You can apply service option by passing in an array with a config object, e.g.:

// wdio.conf.js
export const config = {
    // ...
    services: [
        ['nuxt', {
            rootDir: './packages/nuxt'
        }]
    ],
    // ...
};

Usage

If your config is set up accordingly, the service will set the baseUrl option to point to your application. You can navigate to it via the url command, e.g.:

await browser.url('/')
await expect(browser).toHaveTitle('Welcome to Nuxt!')
await expect($('aria/Welcome to Nuxt!')).toBePresent()

Options

rootDir

Root directory of the project.

Type: string Default: process.cwd()

dotenv

Environment file to be loaded before the server starts.

Type: string Default: .env

hostname

Hostname to start the server on.

Type: string Default: localhost

port

Port to start the server on.

Type: number Default: process.env.NUXT_PORT || config.devServer.port

https

Set to true if test server should be started on https (certificates need to be configured in Nuxt config).

Type: boolean Default: false

sslCert

SSL certificate to be used for starting the server on https.

Type: string

sslKey

SSL key to be used for starting the server on https.

Type: string


For more information on WebdriverIO see the homepage.

Related Packages

@vue/cli-plugin-e2e-webdriverio

e2e-webdriverio plugin for vue-cli

14,109 29,512
@scayle/storefront-nuxt

Nuxt integration for the SCAYLE Commerce Engine and Storefront API

152,903
nuxt-tsconfig-stub

Stub Nuxt's generated tsconfig.json at installation

70,835 24
kuranuxt

Look at the Nuxt 3 documentation to learn more.

871 0
nuxt-define

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

13,412,511

Version History

Version Released License
1.0.1 MIT
1.0.0 MIT
0.2.0 MIT
0.1.3 MIT
0.1.2 MIT