Skip to content

Commit

Permalink
feat: percy config
Browse files Browse the repository at this point in the history
  • Loading branch information
marudor committed Oct 25, 2021
1 parent 5956313 commit 7922445
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 21 deletions.
3 changes: 1 addition & 2 deletions cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ Cypress.Commands.add('closeModal', () => {
});

Cypress.Commands.add('percy', (name: string) => {
cy.percySnapshot(name);
cy.theme('dark');
cy.percySnapshot(`${name} dark`);
cy.percySnapshot(name);
});

function mockStopPlace({
Expand Down
47 changes: 28 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,33 @@
"packages/*"
],
"engineStrict": true,
"jest-junit": {
"output": "./reports/junitresults.xml"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"footer-leading-blank": [
0
]
}
},
"prettier": {
"singleQuote": true,
"trailingComma": "all",
"printWidth": 80
},
"percy": {
"version": 2,
"snapshot": {
"widths": [
375,
1366
]
}
},
"scripts": {
"all:clean": "scripts/eachWorkspace.sh build:clean",
"all:build": "scripts/eachWorkspace.sh build",
Expand Down Expand Up @@ -133,23 +160,5 @@
},
"keywords": [],
"contributors": [],
"homepage": "http://marudor.de",
"jest-junit": {
"output": "./reports/junitresults.xml"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"footer-leading-blank": [
0
]
}
},
"prettier": {
"singleQuote": true,
"trailingComma": "all",
"printWidth": 80
}
"homepage": "http://marudor.de"
}

0 comments on commit 7922445

Please sign in to comment.