Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ianwalter/bff-puppeteer
A bff plugin to enable Puppeteer-based testing
https://github.com/ianwalter/bff-puppeteer
bff chrome puppeteer
Last synced: 2 months ago
JSON representation
A bff plugin to enable Puppeteer-based testing
- Host: GitHub
- URL: https://github.com/ianwalter/bff-puppeteer
- Owner: ianwalter
- License: other
- Created: 2019-06-15T19:53:40.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T06:31:09.000Z (almost 2 years ago)
- Last Synced: 2024-10-04T10:42:14.731Z (3 months ago)
- Topics: bff, chrome, puppeteer
- Language: JavaScript
- Size: 1.02 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# @ianwalter/bff-puppeteer
> A [bff][bffUrl] plugin to enable [Puppeteer][pptrUrl]-based testing[![npm page][npmImage]][npmUrl]
[![CI][ciImage]][ciUrl]## Installation
```console
yarn add @ianwalter/bff-puppeteer --dev
```# Usage
Add `bff-puppeteer` as a `bff` plugin in `package.json`:
```json
"bff": {
"plugins": [
"@ianwalter/bff-puppeteer"
]
}
```Create a test like `example.pptr.js` and import the test function from
`@ianwalter/bff-puppeteer`:```js
import { test } from '@ianwalter/bff-puppeteer'test('something', t => {
t.expect(window).toBeDefined()
})
```## Related
* [`@ianwalter/bff`][bffUrl] - Your friendly test runner/framework
* [`@ianwalter/bff-webdriver`][bffWebdriverUrl] - A bff plugin to enable
WebDriver-based testing
* [`@ianwalter/puppeteer`][iwpupUrl] - A GitHub Action / Docker image for
Puppeteer, the Headless Chrome Node API## License
Hippocratic License - See [LICENSE][licenseUrl]
Created by [Ian Walter](https://ianwalter.dev)
[bffUrl]: https://github.com/ianwalter/bff
[pptrUrl]: https://pptr.dev
[npmImage]: https://img.shields.io/npm/v/@ianwalter/bff-puppeteer.svg
[npmUrl]: https://www.npmjs.com/package/@ianwalter/bff-puppeteer
[ciImage]: https://github.com/ianwalter/bff-puppeteer/workflows/CI/badge.svg
[ciUrl]: https://github.com/ianwalter/bff-puppeteer/actions
[bffWebdriverUrl]: https://github.com/ianwalter/bff-webdriver
[iwpupUrl]: https://github.com/ianwalter/puppeteer
[licenseUrl]: https://github.com/ianwalter/bff-puppeteer/blob/master/LICENSE