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.
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
build
: Builds the Vue SPAstart
: 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
-
to be able to run the Playwright tests, the
playwright-msw
package must have been previously built usingyarn build
. ↩