Skip to content

(@wdio/browser-runner): support Nuxt alias and ensure plugin is loaded before WDIO related ones#10793

Merged
christian-bromann merged 2 commits intomainfrom
cb-nuxt-improvements-3
Jul 24, 2023
Merged

(@wdio/browser-runner): support Nuxt alias and ensure plugin is loaded before WDIO related ones#10793
christian-bromann merged 2 commits intomainfrom
cb-nuxt-improvements-3

Conversation

@christian-bromann
Copy link
Member

Proposed changes

This patch enables support for Nuxt alias to allow imports as following:

import { useProjects } from "~/composables/useProjects";

Furthermore it moves the Nuxt plugin to the beginning of the plugin chain so that mocking can be applied to it.

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Checklist

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • I have added proper type definitions for new commands (if appropriate)

Further comments

n/a

Reviewers: @webdriverio/project-committers

@christian-bromann christian-bromann added the PR: Polish 💅 PRs that contain improvements on existing features label Jul 24, 2023
@christian-bromann christian-bromann merged commit 088387a into main Jul 24, 2023
@christian-bromann christian-bromann deleted the cb-nuxt-improvements-3 branch July 24, 2023 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: Polish 💅 PRs that contain improvements on existing features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant