Skip to content

Run vitest crashes when module is installed on it's 4.0.0 version #342

@ThomasBerneHCSE

Description

@ThomasBerneHCSE

Version

@nuxtjs/color-mode: 4.0.0
nuxt: 4.2.1

Reproduction Link

https://github.com/ThomasBerneHCSE/nuxt-i18n-on-test-reproduction

Steps to reproduce

steps to reproduce :

  1. Instal deps
$ npm install
  1. Run tests
$ npm run test

What is Expected?

The tests should run fine. Remove the @nuxtjs/color-mode and everything works great. Roll back it's version to v3.X.X and everything works great.

What is actually happening?

You will encounter an issue where $setup.t is not a function and other issues on things not defined during tests :
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions