(page: Page, name: string)
| 42 | } |
| 43 | |
| 44 | export async function compareDocToSnapshot(page: Page, name: string) { |
| 45 | // Remove id from docs |
| 46 | const doc = JSON.stringify(await getDoc(page), null, 2); |
| 47 | expect(doc).toMatchSnapshot(`${name}.json`); |
| 48 | } |
| 49 | |
| 50 | /** |
| 51 | * Programmatically move cursor to end of the current block content. |
no test coverage detected