Skip to content

Commit

Permalink
docs(expect-puppeteer): clarify usage
Browse files Browse the repository at this point in the history
Closes #520
  • Loading branch information
gregberge committed Mar 7, 2023
1 parent d9e58fe commit 558a498
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions packages/expect-puppeteer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,7 @@ npm install expect-puppeteer

## Usage

Without Jest:

```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:
Modify your Jest configuration:

```json
{
Expand Down

0 comments on commit 558a498

Please sign in to comment.