Skip to content

Commit 5c1f4d0

Browse files
committed
Upgrade sass and prettier. Add snapshot tests.
For: * About * AccessibilityStatement * App * Appendix * Demo * Faq * FillForms * Manual * OeciLogin * PartnerInterest * PrivacyPolicy * RecordSearch * Rules - Update package.json * Change node-sass dependency to sass * Upgrade prettier to match project root .pre-commit-config.yaml
1 parent 497433a commit 5c1f4d0

File tree

30 files changed

+30845
-3558
lines changed

30 files changed

+30845
-3558
lines changed

src/frontend/package-lock.json

Lines changed: 22742 additions & 3547 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/frontend/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
"lint-staged": "^8.2.1",
2424
"lodash": "^4.17.20",
2525
"moment": "^2.24.0",
26-
"node-sass": "^4.13.1",
27-
"prettier": "^1.19.1",
26+
"prettier": "2.0.5",
2827
"react": "^16.12.0",
2928
"react-dev-utils": "10.1.0",
3029
"react-dom": "^16.12.0",
@@ -36,6 +35,7 @@
3635
"redux": "^4.0.5",
3736
"redux-mock-store": "^1.5.4",
3837
"reselect": "^4.0.0",
38+
"sass": "^1.57.1",
3939
"tachyons": "^4.11.1",
4040
"typescript": "3.7.2"
4141
},
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import React from "react";
2+
import { BrowserRouter } from "react-router-dom";
3+
import renderer from "react-test-renderer";
4+
5+
import About from "./";
6+
7+
it("renders correctly", () => {
8+
const tree = renderer
9+
.create(
10+
<BrowserRouter>
11+
<About />
12+
</BrowserRouter>
13+
)
14+
.toJSON();
15+
expect(tree).toMatchSnapshot();
16+
});

0 commit comments

Comments
 (0)