-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e91279c
commit 822f44b
Showing
12 changed files
with
409 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,7 @@ | ||
/// <reference types="cypress" /> | ||
// const { initPlugin } = require("cypress-plugin-snapshots/plugin"); | ||
import { addMatchImageSnapshotPlugin } from "cypress-image-snapshot/plugin"; | ||
|
||
// module.exports = (on, config) => { | ||
// initPlugin(on, config); | ||
// return config; | ||
// }; | ||
|
||
// import { initPlugin } from "cypress-plugin-snapshots/plugin"; | ||
|
||
// export default (on, config) => { | ||
// initPlugin(on, config); | ||
// return config; | ||
// }; | ||
export default (on, config) => { | ||
addMatchImageSnapshotPlugin(on, config); | ||
return config; | ||
}; |
Binary file added
BIN
+6.84 KB
..._output/home-page.spec.ts/The Home Page -- successfully loads homepage.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
// import "cypress-plugin-snapshots/commands"; | ||
import { addMatchImageSnapshotCommand } from "cypress-image-snapshot/command"; | ||
|
||
addMatchImageSnapshotCommand({ | ||
customSnapshotsDir: "cypress/snapshots/current_output", | ||
customDiffDir: "cypress/snapshots/diff_output", | ||
}); | ||
|
||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { expect } from "@jest/globals"; | ||
import "@testing-library/jest-dom"; | ||
import { configureToMatchImageSnapshot } from "jest-image-snapshot"; | ||
|
||
const toMatchImageSnapshot = configureToMatchImageSnapshot({ | ||
customSnapshotsDir: "jest/snapshots/current_output", | ||
customDiffDir: "jest/snapshots/diff_output", | ||
}); | ||
|
||
expect.extend({ toMatchImageSnapshot }); |
File renamed without changes
Oops, something went wrong.