UNPKG

expect-playwright

Version:

![Node.js CI](https://github.com/playwright-community/expect-playwright/workflows/Node.js%20CI/badge.svg) [![codecov](https://codecov.io/gh/playwright-community/expect-playwright/branch/master/graph/badge.svg?token=Eay491HC49)](https://codecov.io/gh/playw

8 lines (7 loc) 254 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.assertSnapshot = void 0; const assertSnapshot = async (fn) => { await expect(fn).rejects.toThrowErrorMatchingSnapshot(); }; exports.assertSnapshot = assertSnapshot;