GitXplorerGitXplorer
u

vitest-vue-e2e-browser

public
2 stars
1 forks
0 issues

Commits

List of commits on branch main.
Verified
444729ff05152fe55042841f7c4352bfcdb79365

docs: fix remove vitest dev dependency

uuserquin committed a year ago
Verified
e3aef6c037f789a909e3d82e59c400e180b07da7

docs: include none provider PR hint

uuserquin committed a year ago
Verified
0e86a504cd48c85fa0fd62dff610398cc6ec1d9c

docs: add Vitest PR changes to the readme

uuserquin committed a year ago
Verified
fa3607f9b1c239ae65b8e6b74d3b7f83c9644a73

chore: enable StackBlitz in package.json

uuserquin committed a year ago
Verified
e7c73ed87667cd531e96fcae75f95abc20d8ba0e

docs: add StackBlitz link

uuserquin committed a year ago
Unverified
b71b1927c55e4e33b8a1131adb59498fa1825455

chore: simplify route action

uuserquin committed a year ago

README

The README file for this repository.

Vitest Browser Vue 3 e2e

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 test:e2e

Open in StackBlitz

Vue DevTools

Vue DevTools is detecting the app inside @vitest/browser: Select component in the page button not working.

Vue DevTools

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