Skip to content

ianwalter/bff-puppeteer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@ianwalter/bff-puppeteer

A bff plugin to enable Puppeteer-based testing

npm page CI

Installation

yarn add @ianwalter/bff-puppeteer --dev

Usage

Add bff-puppeteer as a bff plugin in package.json:

"bff": {
  "plugins": [
    "@ianwalter/bff-puppeteer"
  ]
}

Create a test like example.pptr.js and import the test function from @ianwalter/bff-puppeteer:

import { test } from '@ianwalter/bff-puppeteer'

test('something', t => {
  t.expect(window).toBeDefined()
})

Related

License

Hippocratic License - See LICENSE

 

Created by Ian Walter