Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1.04 KB

README.md

File metadata and controls

27 lines (19 loc) · 1.04 KB

Playwright MSW Example (Vue)

A Vue SPA that utilises MSW to improve development experience. Additionally, it also has a number of Playwright tests to make sure that playwright-msw's integration of the two libraries works as expected.

Getting started

To start a local dev server, do the following:

git clone https://github.com/valendres/playwright-msw
cd playwright-msw
yarn
yarn build
cd packages/example-vue
yarn start

Commands

  • build: Builds the Vue SPA
  • start: Starts a local dev server so that you can manually view the UI that is tested by Playwright.
  • start:msw: Starts a local dev server with MSW enabled.
  • test: Runs the Playwright tests within the test/specs folder1

Footnotes

Footnotes

  1. to be able to run the Playwright tests, the playwright-msw package must have been previously built using yarn build.