DefinitelyTyped/types/cypress-image-snapshot/cypress-image-snapshot-tests.ts
Alex Kessock 9785fa3b5a Add options from cypress and jest-image-snapshot to cypress-image-snapshot (#41897)
* Add options from cypress and jest-image-snapshot to cypress-image-snapshot

* Use jest-image-snapshot from DefinitelyTyped

* Don't use relative paths to DefinitelyTyped modules

* Use TypeScript Version: 3.0 to match jest-image-snapshot

* inline jest-image-snapshot

* Don't use include

* Add dom to tsconfig

* Don't export MatchImageSnapshotOptions
2020-01-28 09:57:03 -08:00

11 lines
339 B
TypeScript

import * as command from 'cypress-image-snapshot/command';
import { addMatchImageSnapshotPlugin } from 'cypress-image-snapshot/plugin';
// $ExpectType void
command.addMatchImageSnapshotCommand({
customSnapshotsDir: '../../test/cypress/snapshots',
scale: true,
});
addMatchImageSnapshotPlugin(() => null, {}); // $ExpectType void