diff --git a/app/controllers/__tests__/onboarding-controller.js b/app/controllers/__tests__/onboarding-controller.js index 739b78d..d109ef4 100644 --- a/app/controllers/__tests__/onboarding-controller.js +++ b/app/controllers/__tests__/onboarding-controller.js @@ -1,3 +1,5 @@ +import { UnprocessableEntityError } from 'app/lib/errors'; + import { OnBoardingController } from '../onboarding-controller'; describe('app/controllers/onboarding-controller', () => { @@ -5,6 +7,7 @@ describe('app/controllers/onboarding-controller', () => { const request = { session: jest.fn(), user: jest.fn(), + flash: () => [], csrfToken: jest.fn(), }; const response = { @@ -26,7 +29,7 @@ describe('app/controllers/onboarding-controller', () => { onboarding.createStoreForm(request, response); expect(response.render).toBeCalledWith('onboarding/create-store', { - user: request.user, csrfToken: request.csrfToken(), + user: request.user, csrfToken: request.csrfToken(), error: new UnprocessableEntityError(), }); expect(response.render).toHaveBeenCalledTimes(1); }); diff --git a/app/controllers/onboarding-controller.js b/app/controllers/onboarding-controller.js index 008eddd..e1ac6e1 100644 --- a/app/controllers/onboarding-controller.js +++ b/app/controllers/onboarding-controller.js @@ -2,6 +2,7 @@ import autoBind from 'auto-bind'; import onBoardingService from 'app/services/onboarding'; +import { UnprocessableEntityError } from 'app/lib/errors'; export class OnBoardingController { /** @@ -23,7 +24,17 @@ export class OnBoardingController { * @return {Express.Response} */ createStoreForm(request, response) { - const data = { user: request.user, csrfToken: request.csrfToken() }; + // todo: need to be extracted into separate function + const inputError = new UnprocessableEntityError( + request.flash('errors')[0], + request.flash('oldInputs')[0], + ); + + const data = { + user: request.user, + csrfToken: request.csrfToken(), + error: inputError, + }; response.render('onboarding/create-store', data); } diff --git a/jest.config.js b/jest.config.js index ff78d99..221737c 100644 --- a/jest.config.js +++ b/jest.config.js @@ -11,5 +11,4 @@ module.exports = { '^.+\\.js$': '/node_modules/babel-jest', '.*\\.(vue)$': '/node_modules/vue-jest', }, - mapCoverage: true, }; diff --git a/package.json b/package.json index de43811..f8f4c8f 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "eslint-plugin-react": "^7.5.1", "eslint-plugin-vue": "^2.1.0", "husky": "^0.14.3", - "jest": "^22.0.0", + "jest": "22.0.4", "laravel-mix": "^1.7.2", "nightwatch": "^0.9.19", "nodemon": "^1.12.1", diff --git a/view/onboarding/create-store.ejs b/view/onboarding/create-store.ejs index 58f3d24..9d3e974 100644 --- a/view/onboarding/create-store.ejs +++ b/view/onboarding/create-store.ejs @@ -21,14 +21,23 @@
+ <% if (error.getMessage('name')) { %> +
<%= error.getMessage('name') %>
+ <% } %>
+ <% if (error.getMessage('location')) { %> +
<%= error.getMessage('location') %>
+ <% } %>
+ <% if (error.getMessage('address')) { %> +
<%= error.getMessage('address') %>
+ <% } %>
diff --git a/yarn.lock b/yarn.lock index 9cf6967..89e399c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -557,12 +557,12 @@ babel-helpers@^6.24.1: babel-runtime "^6.22.0" babel-template "^6.24.1" -babel-jest@^22.0.0: - version "22.0.0" - resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-22.0.0.tgz#4da5fbaec0597d454430bd0166f09d1287c6fe39" +babel-jest@^22.0.4: + version "22.0.4" + resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-22.0.4.tgz#533c46de37d7c9d7612f408c76314be9277e0c26" dependencies: babel-plugin-istanbul "^4.1.5" - babel-preset-jest "^22.0.0" + babel-preset-jest "^22.0.3" babel-loader@^7.1.1: version "7.1.2" @@ -592,9 +592,9 @@ babel-plugin-istanbul@^4.1.5: istanbul-lib-instrument "^1.7.5" test-exclude "^4.1.1" -babel-plugin-jest-hoist@^22.0.0: - version "22.0.0" - resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-22.0.0.tgz#30859d15453a324aee01264be9c522802f8ba512" +babel-plugin-jest-hoist@^22.0.3: + version "22.0.3" + resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-22.0.3.tgz#62cde5fe962fd41ae89c119f481ca5cd7dd48bb4" babel-plugin-jsx-event-modifiers@^2.0.2: version "2.0.5" @@ -887,11 +887,11 @@ babel-preset-env@^1.5.1, babel-preset-env@^1.6.0, babel-preset-env@^1.6.1: invariant "^2.2.2" semver "^5.3.0" -babel-preset-jest@^22.0.0: - version "22.0.0" - resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-22.0.0.tgz#6c93d9791030ba2b7ebb4c814b4c243bf29afb36" +babel-preset-jest@^22.0.3: + version "22.0.3" + resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-22.0.3.tgz#e2bb6f6b4a509d3ea0931f013db78c5a84856693" dependencies: - babel-plugin-jest-hoist "^22.0.0" + babel-plugin-jest-hoist "^22.0.3" babel-plugin-syntax-object-rest-spread "^6.13.0" babel-preset-vue-app@^1.3.1: @@ -3011,16 +3011,16 @@ expand-range@^1.8.1: dependencies: fill-range "^2.1.0" -expect@^22.0.0: - version "22.0.0" - resolved "https://registry.yarnpkg.com/expect/-/expect-22.0.0.tgz#bd2ba3cb7de3cc9724b85107ad7f4e0e7b6f1bbc" +expect@^22.0.3: + version "22.0.3" + resolved "https://registry.yarnpkg.com/expect/-/expect-22.0.3.tgz#bb486de7d41bf3eb60d3b16dfd1c158a4d91ddfa" dependencies: ansi-styles "^3.2.0" - jest-diff "^22.0.0" - jest-get-type "^22.0.0" - jest-matcher-utils "^22.0.0" - jest-message-util "^22.0.0" - jest-regex-util "^21.2.0" + jest-diff "^22.0.3" + jest-get-type "^22.0.3" + jest-matcher-utils "^22.0.3" + jest-message-util "^22.0.3" + jest-regex-util "^22.0.3" express-session@^1.15.6: version "1.15.6" @@ -4674,15 +4674,15 @@ istanbul-reports@^1.1.3: dependencies: handlebars "^4.0.3" -jest-changed-files@^22.0.0: - version "22.0.0" - resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-22.0.0.tgz#14c5e76764040009af149c99384017867675920a" +jest-changed-files@^22.0.3: + version "22.0.3" + resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-22.0.3.tgz#3771315acfa24a0ed7e6c545de620db6f1b2d164" dependencies: throat "^4.0.0" -jest-cli@^22.0.0: - version "22.0.0" - resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-22.0.0.tgz#0a4a55738a7ca66ded52fc9a5317caca4a4d3022" +jest-cli@^22.0.4: + version "22.0.4" + resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-22.0.4.tgz#0052abaad45c57861c05da8ab5d27bad13ad224d" dependencies: ansi-escapes "^3.0.0" chalk "^2.0.1" @@ -4693,19 +4693,19 @@ jest-cli@^22.0.0: istanbul-lib-coverage "^1.1.1" istanbul-lib-instrument "^1.8.0" istanbul-lib-source-maps "^1.2.1" - jest-changed-files "^22.0.0" - jest-config "^22.0.0" - jest-environment-jsdom "^22.0.0" - jest-get-type "^22.0.0" - jest-haste-map "^22.0.0" - jest-message-util "^22.0.0" - jest-regex-util "^21.2.0" - jest-resolve-dependencies "^21.2.0" - jest-runner "^22.0.0" - jest-runtime "^22.0.0" - jest-snapshot "^22.0.0" - jest-util "^22.0.0" - jest-worker "^22.0.0" + jest-changed-files "^22.0.3" + jest-config "^22.0.4" + jest-environment-jsdom "^22.0.4" + jest-get-type "^22.0.3" + jest-haste-map "^22.0.3" + jest-message-util "^22.0.3" + jest-regex-util "^22.0.3" + jest-resolve-dependencies "^22.0.3" + jest-runner "^22.0.4" + jest-runtime "^22.0.4" + jest-snapshot "^22.0.3" + jest-util "^22.0.4" + jest-worker "^22.0.3" micromatch "^2.3.11" node-notifier "^5.1.2" realpath-native "^1.0.0" @@ -4716,100 +4716,100 @@ jest-cli@^22.0.0: which "^1.2.12" yargs "^10.0.3" -jest-config@^22.0.0: - version "22.0.0" - resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-22.0.0.tgz#cb99d6bf9a6632792993ee399eb1c7b7efd20496" +jest-config@^22.0.4: + version "22.0.4" + resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-22.0.4.tgz#9c2a46c0907b1a1af54d9cdbf18e99b447034e11" dependencies: chalk "^2.0.1" glob "^7.1.1" - jest-environment-jsdom "^22.0.0" - jest-environment-node "^22.0.0" - jest-get-type "^22.0.0" - jest-jasmine2 "^22.0.0" - jest-regex-util "^21.2.0" - jest-resolve "^22.0.0" - jest-util "^22.0.0" - jest-validate "^22.0.0" - pretty-format "^22.0.0" - -jest-diff@^22.0.0: - version "22.0.0" - resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-22.0.0.tgz#31e7771f6d55f42fb410789f7743972dc342c073" + jest-environment-jsdom "^22.0.4" + jest-environment-node "^22.0.4" + jest-get-type "^22.0.3" + jest-jasmine2 "^22.0.4" + jest-regex-util "^22.0.3" + jest-resolve "^22.0.4" + jest-util "^22.0.4" + jest-validate "^22.0.3" + pretty-format "^22.0.3" + +jest-diff@^22.0.3: + version "22.0.3" + resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-22.0.3.tgz#ffed5aba6beaf63bb77819ba44dd520168986321" dependencies: chalk "^2.0.1" diff "^3.2.0" - jest-get-type "^22.0.0" - pretty-format "^22.0.0" + jest-get-type "^22.0.3" + pretty-format "^22.0.3" -jest-docblock@^22.0.0: - version "22.0.0" - resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-22.0.0.tgz#2e6a79360172b90bd2cd235a4832e38388b3b658" +jest-docblock@^22.0.3: + version "22.0.3" + resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-22.0.3.tgz#c33aa22682b9fc68a5373f5f82994428a2ded601" dependencies: detect-newline "^2.1.0" -jest-environment-jsdom@^22.0.0: - version "22.0.0" - resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-22.0.0.tgz#d7787c1c934111d3d6f1881e15bdcfdaefe41abe" +jest-environment-jsdom@^22.0.4: + version "22.0.4" + resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-22.0.4.tgz#5723d4e724775ed38948de792e62f2d6a7f452df" dependencies: - jest-mock "^22.0.0" - jest-util "^22.0.0" + jest-mock "^22.0.3" + jest-util "^22.0.4" jsdom "^11.5.1" -jest-environment-node@^22.0.0: - version "22.0.0" - resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-22.0.0.tgz#ecece15308d8b3db1c3702bec39434a4185f557d" +jest-environment-node@^22.0.4: + version "22.0.4" + resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-22.0.4.tgz#068671f85a545f96a5469be3a3dd228fca79c709" dependencies: - jest-mock "^22.0.0" - jest-util "^22.0.0" + jest-mock "^22.0.3" + jest-util "^22.0.4" -jest-get-type@^22.0.0: - version "22.0.0" - resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-22.0.0.tgz#d49b734cb91b66204cf6cb726d81c64c77684b1c" +jest-get-type@^22.0.3: + version "22.0.3" + resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-22.0.3.tgz#fa894b677c0fcd55eff3fd8ee28c7be942e32d36" -jest-haste-map@^22.0.0: - version "22.0.0" - resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-22.0.0.tgz#aa0730a16a07c287100c0c213c118dc9a4255d2d" +jest-haste-map@^22.0.3: + version "22.0.3" + resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-22.0.3.tgz#c9ecb5c871c5465d4bde4139e527fa0dc784aa2d" dependencies: fb-watchman "^2.0.0" graceful-fs "^4.1.11" - jest-docblock "^22.0.0" - jest-worker "^22.0.0" + jest-docblock "^22.0.3" + jest-worker "^22.0.3" micromatch "^2.3.11" sane "^2.0.0" -jest-jasmine2@^22.0.0: - version "22.0.0" - resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-22.0.0.tgz#13d0ec186bcae2d87c64cf72dafec70de5423313" +jest-jasmine2@^22.0.4: + version "22.0.4" + resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-22.0.4.tgz#f7c0965116efe831ec674dc954b0134639b3dcee" dependencies: callsites "^2.0.0" chalk "^2.0.1" - expect "^22.0.0" + expect "^22.0.3" graceful-fs "^4.1.11" - jest-diff "^22.0.0" - jest-matcher-utils "^22.0.0" - jest-message-util "^22.0.0" - jest-snapshot "^22.0.0" + jest-diff "^22.0.3" + jest-matcher-utils "^22.0.3" + jest-message-util "^22.0.3" + jest-snapshot "^22.0.3" source-map-support "^0.5.0" -jest-leak-detector@^22.0.0: - version "22.0.0" - resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-22.0.0.tgz#e2fee3674f4c2d62f538c4935a8fe146764cec39" +jest-leak-detector@^22.0.3: + version "22.0.3" + resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-22.0.3.tgz#b64904f0e8954a11edb79b0809ff4717fa762d99" dependencies: - pretty-format "^22.0.0" + pretty-format "^22.0.3" optionalDependencies: weak "^1.0.1" -jest-matcher-utils@^22.0.0: - version "22.0.0" - resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-22.0.0.tgz#dc1c69863ebf840d1276f3b66258d47755343183" +jest-matcher-utils@^22.0.3: + version "22.0.3" + resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-22.0.3.tgz#2ec15ca1af7dcabf4daddc894ccce224b948674e" dependencies: chalk "^2.0.1" - jest-get-type "^22.0.0" - pretty-format "^22.0.0" + jest-get-type "^22.0.3" + pretty-format "^22.0.3" -jest-message-util@^22.0.0: - version "22.0.0" - resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-22.0.0.tgz#68df008cfbdd0234792d28363df6e1309944ef33" +jest-message-util@^22.0.3: + version "22.0.3" + resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-22.0.3.tgz#bf674b2762ef2dd53facf2136423fcca264976df" dependencies: "@babel/code-frame" "^7.0.0-beta.35" chalk "^2.0.1" @@ -4817,57 +4817,57 @@ jest-message-util@^22.0.0: slash "^1.0.0" stack-utils "^1.0.1" -jest-mock@^22.0.0: - version "22.0.0" - resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-22.0.0.tgz#f8e17b36d0f4c430a16d90d531c5f2308f2ebee6" +jest-mock@^22.0.3: + version "22.0.3" + resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-22.0.3.tgz#c875e47b5b729c6c020a2fab317b275c0cf88961" -jest-regex-util@^21.2.0: - version "21.2.0" - resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-21.2.0.tgz#1b1e33e63143babc3e0f2e6c9b5ba1eb34b2d530" +jest-regex-util@^22.0.3: + version "22.0.3" + resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-22.0.3.tgz#c5c10229de5ce2b27bf4347916d95b802ae9aa4d" -jest-resolve-dependencies@^21.2.0: - version "21.2.0" - resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-21.2.0.tgz#9e231e371e1a736a1ad4e4b9a843bc72bfe03d09" +jest-resolve-dependencies@^22.0.3: + version "22.0.3" + resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-22.0.3.tgz#202ddf370069702cd1865a1952fcc7e52c92720e" dependencies: - jest-regex-util "^21.2.0" + jest-regex-util "^22.0.3" -jest-resolve@^22.0.0: - version "22.0.0" - resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-22.0.0.tgz#2210a11aeaac3b521508d0b5bb25d908a00823df" +jest-resolve@^22.0.4: + version "22.0.4" + resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-22.0.4.tgz#a6e47f55e9388c7341b5e9732aedc6fe30906121" dependencies: browser-resolve "^1.11.2" chalk "^2.0.1" -jest-runner@^22.0.0: - version "22.0.0" - resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-22.0.0.tgz#4f4a5b8ceb7532d01ebe1dc151cfcb208ca1fbcb" - dependencies: - jest-config "^22.0.0" - jest-docblock "^22.0.0" - jest-haste-map "^22.0.0" - jest-jasmine2 "^22.0.0" - jest-leak-detector "^22.0.0" - jest-message-util "^22.0.0" - jest-runtime "^22.0.0" - jest-util "^22.0.0" - jest-worker "^22.0.0" +jest-runner@^22.0.4: + version "22.0.4" + resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-22.0.4.tgz#3aa43a31b05ce8271539df580c2eb916023d3367" + dependencies: + jest-config "^22.0.4" + jest-docblock "^22.0.3" + jest-haste-map "^22.0.3" + jest-jasmine2 "^22.0.4" + jest-leak-detector "^22.0.3" + jest-message-util "^22.0.3" + jest-runtime "^22.0.4" + jest-util "^22.0.4" + jest-worker "^22.0.3" throat "^4.0.0" -jest-runtime@^22.0.0: - version "22.0.0" - resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-22.0.0.tgz#42a3defd6fc138fc1cdf4dadb84426bc3932ddd1" +jest-runtime@^22.0.4: + version "22.0.4" + resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-22.0.4.tgz#8f69aa7b5fbb3acd35dc262cbf654e563f69b7b4" dependencies: babel-core "^6.0.0" - babel-jest "^22.0.0" + babel-jest "^22.0.4" babel-plugin-istanbul "^4.1.5" chalk "^2.0.1" convert-source-map "^1.4.0" graceful-fs "^4.1.11" - jest-config "^22.0.0" - jest-haste-map "^22.0.0" - jest-regex-util "^21.2.0" - jest-resolve "^22.0.0" - jest-util "^22.0.0" + jest-config "^22.0.4" + jest-haste-map "^22.0.3" + jest-regex-util "^22.0.3" + jest-resolve "^22.0.4" + jest-util "^22.0.4" json-stable-stringify "^1.0.1" micromatch "^2.3.11" realpath-native "^1.0.0" @@ -4876,49 +4876,49 @@ jest-runtime@^22.0.0: write-file-atomic "^2.1.0" yargs "^10.0.3" -jest-snapshot@^22.0.0: - version "22.0.0" - resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-22.0.0.tgz#c8913006bcd604f10a6174a2378683cea889138c" +jest-snapshot@^22.0.3: + version "22.0.3" + resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-22.0.3.tgz#a949b393781d2fdb4773f6ea765dd67ad1da291e" dependencies: chalk "^2.0.1" - jest-diff "^22.0.0" - jest-matcher-utils "^22.0.0" + jest-diff "^22.0.3" + jest-matcher-utils "^22.0.3" mkdirp "^0.5.1" natural-compare "^1.4.0" - pretty-format "^22.0.0" + pretty-format "^22.0.3" -jest-util@^22.0.0: - version "22.0.0" - resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-22.0.0.tgz#8e73c88f482825e6b10caf0f93f144bae5841938" +jest-util@^22.0.4: + version "22.0.4" + resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-22.0.4.tgz#d920a513e0645aaab030cee38e4fe7d5bed8bb6d" dependencies: callsites "^2.0.0" chalk "^2.0.1" graceful-fs "^4.1.11" is-ci "^1.0.10" - jest-message-util "^22.0.0" - jest-validate "^22.0.0" + jest-message-util "^22.0.3" + jest-validate "^22.0.3" mkdirp "^0.5.1" -jest-validate@^22.0.0: - version "22.0.0" - resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-22.0.0.tgz#ba17b0422deef40d8937b35a85f4c8912e4e673b" +jest-validate@^22.0.3: + version "22.0.3" + resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-22.0.3.tgz#2850d949a36c48b1a40f7eebae1d8539126f7829" dependencies: chalk "^2.0.1" - jest-get-type "^22.0.0" + jest-get-type "^22.0.3" leven "^2.1.0" - pretty-format "^22.0.0" + pretty-format "^22.0.3" -jest-worker@^22.0.0: - version "22.0.0" - resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-22.0.0.tgz#4a276938a2077e1d72b6a2acd1d43826a9fd07f8" +jest-worker@^22.0.3: + version "22.0.3" + resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-22.0.3.tgz#30433faca67814a8f80559f75ab2ceaa61332fd2" dependencies: merge-stream "^1.0.1" -jest@^22.0.0: - version "22.0.0" - resolved "https://registry.yarnpkg.com/jest/-/jest-22.0.0.tgz#a75b19d4d43579bc9eb0ec1eff5a6296975c3757" +jest@22.0.4: + version "22.0.4" + resolved "https://registry.yarnpkg.com/jest/-/jest-22.0.4.tgz#d3cf560ece6b825b115dce80b9826ceb40f87961" dependencies: - jest-cli "^22.0.0" + jest-cli "^22.0.4" js-base64@^2.1.8, js-base64@^2.1.9: version "2.4.0" @@ -7057,9 +7057,9 @@ prettier@^1.7.0: version "1.9.1" resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.9.1.tgz#41638a0d47c1efbd1b7d5a742aaa5548eab86d70" -pretty-format@^22.0.0: - version "22.0.0" - resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-22.0.0.tgz#3c1da8d100e7e0b0ff1d839f4743b002d5907531" +pretty-format@^22.0.3: + version "22.0.3" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-22.0.3.tgz#a2bfa59fc33ad24aa4429981bb52524b41ba5dd7" dependencies: ansi-regex "^3.0.0" ansi-styles "^3.2.0"