expect-puppeteer
Advanced tools
Comparing version 8.0.2 to 8.0.3
{ | ||
"name": "expect-puppeteer", | ||
"description": "Assertion toolkit for Puppeteer.", | ||
"version": "8.0.2", | ||
"version": "8.0.3", | ||
"type": "commonjs", | ||
@@ -52,3 +52,3 @@ "main": "./dist/index.js", | ||
}, | ||
"gitHead": "a0672aac31827db7273a5eefd717401846589012" | ||
"gitHead": "6723a112283bb2da345bed8a5079ef8a0f19d6a9" | ||
} |
@@ -15,19 +15,4 @@ # expect-puppeteer | ||
Without Jest: | ||
Modify your Jest configuration: | ||
```js | ||
import expect from "expect-puppeteer"; | ||
(async () => { | ||
const browser = await puppeteer.launch(); | ||
const page = await browser.newPage(); | ||
await page.goto("https://google.com"); | ||
await expect(page).toMatch("google"); | ||
await browser.close(); | ||
})(); | ||
``` | ||
## Use with Jest | ||
To use with Jest, just modify your configuration: | ||
```json | ||
@@ -34,0 +19,0 @@ { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
36243
248