This commit is contained in:
Joshua 2022-09-12 16:16:00 +02:00
parent 4736fb269e
commit 4cb9f8ca1d
3 changed files with 16 additions and 9 deletions

View file

@ -3,7 +3,13 @@
describe("@cypress/snapshot", () => { describe("@cypress/snapshot", () => {
context("simple types", () => { context("simple types", () => {
it("works with objects", () => { it("works with objects", () => {
cy.fixture("File2").snapshot("Compare Files"); cy.fixture("File2").snapshot(
"Compare Files"
,{
snapshotPath: "cypress/snapshots",
snapshotName: "Comparison"
}
);
}); });
// it("works with numbers", () => { // it("works with numbers", () => {

View file

@ -0,0 +1 @@
{"foo":"bar","Fizzy Drink":"Pop"}

View file

@ -17,7 +17,7 @@ module.exports = {
snapshots: { snapshots: {
compareValues, compareValues,
}, },
config: require("./config"),
functions: { functions: {
register: require("./functions/register"), register: require("./functions/register"),
tasks: require("./functions/addTasks") tasks: require("./functions/addTasks")