From 9b70f579426d5310045e8eb82d11bb6bd264e6f4 Mon Sep 17 00:00:00 2001 From: Richard Scarrott Date: Fri, 24 Mar 2017 16:27:08 +0000 Subject: [PATCH] Upgrade jest (#77) --- package.json | 2 +- .../app/__snapshots__/App.test.js.snap | 14 ++-- .../html/__snapshots__/Html.test.js.snap | 71 ++++++++++++------- .../index/__snapshots__/Index.test.js.snap | 11 ++- .../__snapshots__/NotFound.test.js.snap | 5 +- .../root/__snapshots__/Root.test.js.snap | 8 ++- 6 files changed, 75 insertions(+), 36 deletions(-) diff --git a/package.json b/package.json index e78d33b..608717a 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "fs-extra": "^2.1.2", "identity-obj-proxy": "^3.0.0", "imports-loader": "^0.7.1", - "jest": "^16.0.2", + "jest": "^19.0.2", "json-loader": "^0.5.4", "progress-bar-webpack-plugin": "^1.9.3", "react": "^15.4.2", diff --git a/src/components/app/__snapshots__/App.test.js.snap b/src/components/app/__snapshots__/App.test.js.snap index 1534332..385ce80 100644 --- a/src/components/app/__snapshots__/App.test.js.snap +++ b/src/components/app/__snapshots__/App.test.js.snap @@ -1,15 +1,21 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + exports[`components/app/App renders correctly 1`] = `
+ className="root" +> + titleTemplate="%s | 60fram.es React Boilerplate" + />
+ className="logo" + > + to="/" + > 60fram.es
diff --git a/src/components/html/__snapshots__/Html.test.js.snap b/src/components/html/__snapshots__/Html.test.js.snap index 03b05ba..be37206 100644 --- a/src/components/html/__snapshots__/Html.test.js.snap +++ b/src/components/html/__snapshots__/Html.test.js.snap @@ -1,84 +1,105 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + exports[`components/html/Html renders correctly 1`] = ` + lang="en" +> + charSet="utf-8" + /> - title - + httpEquiv="x-ua-compatible" + /> + <title>title</title> + <meta /> + name="viewport" + /> + name="apple-mobile-web-app-capable" + /> + name="msapplication-tap-highlight" + /> + sizes="180x180" + /> + type="image/png" + /> + type="image/png" + /> + rel="manifest" + /> + rel="mask-icon" + /> + name="apple-mobile-web-app-title" + /> + name="application-name" + /> - + name="theme-color" + /> + <link /> + rel="stylesheet" + />
+
Hello World.
", } } - id="root" /> + id="root" + />