0.0.9 • Published 5 years ago
@http4t/mocha-puppeteer v0.0.9
http4t Mocha Puppeteer
- Generates a
mocha.htmlfile that imports all*.test.tsfiles under the working directory - Uses Parcel to bundle and serve
mocha.html - Uses Puppeteer to call
mocha.run()in Chrome headless and report back the results, failing on errors
Usage
Add mocha.html to your .gitignore file.
mocha.html is regenerated for every run, but we don't clean it up afterwards,
because it is often useful to run parcel serve mocha.html to debug failures.
Add to package.json:
{
"scripts": {
"test:browser": "mochapuppeteer"
},
"devDependencies": {
"@http4t/mocha-puppeteer": "1.0.0"
}
}