Skip to content
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.

Add prettier to precommit #766

Merged
merged 3 commits into from
Jun 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"arrowParens": "avoid",
"trailingComma": "es5"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ import { addSerializer } from "jest-specific-snapshot";

jest.mock("react-dom", () => ({
createPortal: node => node,
findDOMNode: () => {}
findDOMNode: () => {},
}));

global.matchMedia = media => ({
(global as any).matchMedia = () => ({
addListener: jest.fn(),
matches: true,
removeListener: jest.fn()
removeListener: jest.fn(),
});

addSerializer(styleSheetSerializer);

initStoryshots({
framework: "react",
test: multiSnapshotWithOptions({})
test: multiSnapshotWithOptions({}),
});
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ All notable, unreleased changes to this project will be documented in this file.
- Automatically choose variant attributes from url in ProductVariantPicker - #708 by @AlicjaSzu
- Use sdk as a standalone package - #724 by @dominik-zeglen
- Fix CartRow tests - #749 by @dominik-zeglen
- Add prettier to precommit - #766 by @dominik-zeglen

## 2.10.2

Expand Down
Loading