jest-runner-playwright-unit
v0.0.7
Published
Runs unit tests inside a web browser
Downloads
12
Readme
jest-runner-playwright-unit
A jest runner that runs unit tests with playwright.
This package is not ready for use. If you want to run tests with playwright, checkout jest-playwright for Jest or karma-playwright-launcher for Karma.
- The users test code, for example
something.spec.tsx
, is compiled into modern javascript with es6 imports. - The compiled test code is run directly in the browser.
- The test code imports something. Playwright intercepts the http request and...
- if it is local, such as
import './App.tsx'
, that new file is compiled to modern javascript and returned. - if it is a module, such as
import 'react'
, the parent node process is used to resolve the module. Browserify is used to bundle it, and the bundle is returned.
- if it is local, such as