1 | /// <reference path="./chai-dom-diff-plugin.d.ts" />
|
2 |
|
3 | export const chaiDomDiff: Chai.ChaiPlugin
|
4 |
|
5 | // best guess based on https://github.com/wellguimaraes/mocha-snapshots/blob/cb4d4f00ee8a761461f8ccefba19dfdfa44c20a5/tests/__snapshots__/matchSnapshot.test.js.mocha-snapshot#L1-L50
|
6 | interface Snapshot {
|
7 | code: string;
|
8 | }
|
9 |
|
10 | interface Snapshots {
|
11 | update: boolean;
|
12 | get(path: string[], index: number): Snapshot
|
13 | set(path: string[], index: number, html: string, type: 'html'): Snapshot
|
14 | match(html: string, test: string): boolean;
|
15 | }
|
16 |
|
17 | declare global {
|
18 | interface Window {
|
19 | __mocha_context__: Mocha.Context & { runnable: Mocha.Runnable & { type: string } };
|
20 | __snapshot__: Snapshots
|
21 | }
|
22 | }
|