GitXplorerGitXplorer
u

vitest-vue-browser

public
4 stars
0 forks
0 issues

Commits

List of commits on branch main.
Verified
42ebe9eb37d4f9e4c1da6487a500ca21e9cef9f5

docs: fix remove vitest dev dependency

uuserquin committed a year ago
Verified
f634e591ef6ceb7911eb849077b26d7822edd760

docs: include none provider PR hint

uuserquin committed a year ago
Verified
0dcd5110df9f7b5fc1a212b95e69a6784a645e32

docs: add Vitest PR changes to the readme

uuserquin committed a year ago
Unverified
69103740279d982ac5dfc98615a1803cbc811b43

chore: update vitest deps

uuserquin committed a year ago
Unverified
da0e0b06b9728c39c2f4c4ee4d121f69fe4e47c3

chore: update vitest packages

uuserquin committed a year ago
Unverified
c66f81120ea71c80787efed9aedef916babcdf1a

chore: add pnpm as package manager

uuserquin committed a year ago

README

The README file for this repository.

Vitest Browser Vue 3

Testing Vue 3 application with @vitest/browser in the browser.

This repo is using a custom vitest and @vitest/browser package versions from this PR.

Run

This repo is using pnpm as package manager.

pnpm install && pnpm run test

Open in StackBlitz

Change Vitest PR

If you're working with the Vitest PR 3584 and you want to change somehing on it, you will need to build Vitest and create tgz files for vitest and @vitest/browser packages:

  • run nr build && pnpm pack from root: will generate vitest-0.xx.z.tgz (xx.z is the Vitest version)
  • open another terminal and change to packages/browser folder (cd packages/browser) and run pnpm pack: will generate vitest-browser-0.xx.z.tgz (xx.z is the Vitest version)

If you want to run your fork of this repository in StackBlitz, you NEED to include Vitest PR 3674: none provider changes in your Vitest PR 3584 local fork.

Once you've generated vitest and @vitest/browser in your local, uninstall both dev dependencies in your local fork in this repository, don't remove the corresponding tgz files before uninstalling the dependencies:

  • run pnpm remove -D @vitest/browser
  • run pnpm remove -D vitest

Override both tar.gz files in your local fork in this repo and add both dependencies using the file: protocol:

  • pnpm add -D ./vitest-0.xx.z.tgz
  • pnpm add -D ./vitest-browser-0.xx.z.tgz