Commit 787a3ddb authored by Nikolai R Kristiansen's avatar Nikolai R Kristiansen

Fix tests

parent 1829cef2
Pipeline #659 passed with stage
in 1 minute and 10 seconds
jest.doMock('tipsi-stripe', () => ({
init: jest.fn(),
}));
\ No newline at end of file
init: jest.fn(),
}));
jest.doMock('react-dom/server', () => {}, {virtual: true})
global.fetch = require('jest-fetch-mock');
......@@ -39,6 +39,7 @@
"devDependencies": {
"babel-jest": "21.2.0",
"jest": "21.2.1",
"jest-fetch-mock": "^1.6.5",
"react-dom": "^16.0.0",
"react-test-renderer": "16.2.0"
},
......
......@@ -2,17 +2,17 @@
# yarn lockfile v1
"@sentry/cli@1.27.0", "@sentry/cli@^1.27.1":
"@sentry/cli@1.27.0", "@sentry/cli@^1.28.1":
version "1.27.0"
resolved "https://registry.yarnpkg.com/@sentry/cli/-/cli-1.27.0.tgz#a47ddc1e67b0306f623effaf5a925777f940b896"
dependencies:
progress "2.0.0"
"@sentry/wizard@^0.7":
version "0.7.4"
resolved "https://registry.yarnpkg.com/@sentry/wizard/-/wizard-0.7.4.tgz#fcf9f2d2e9973da93c4475c399716625080ffe5a"
version "0.7.5"
resolved "https://registry.yarnpkg.com/@sentry/wizard/-/wizard-0.7.5.tgz#c791669d66bf96634abf275a671261935949b732"
dependencies:
"@sentry/cli" "^1.27.1"
"@sentry/cli" "^1.28.1"
chalk "^2.3.0"
glob "^7.1.2"
inquirer "^4.0.0"
......@@ -27,6 +27,10 @@
version "2.0.46"
resolved "https://registry.yarnpkg.com/@types/async/-/async-2.0.46.tgz#f13a6c336a6582b95d0c0269e796b709488fd54d"
"@types/jest@^23.0.0":
version "23.3.1"
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-23.3.1.tgz#a4319aedb071d478e6f407d1c4578ec8156829cf"
"@types/zen-observable@0.5.3", "@types/zen-observable@^0.5.3":
version "0.5.3"
resolved "https://registry.yarnpkg.com/@types/zen-observable/-/zen-observable-0.5.3.tgz#91b728599544efbb7386d8b6633693a3c2e7ade5"
......@@ -1138,6 +1142,14 @@ cliui@^3.2.0:
strip-ansi "^3.0.1"
wrap-ansi "^2.0.0"
cliui@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/cliui/-/cliui-4.0.0.tgz#743d4650e05f36d1ed2575b59638d87322bfbbcc"
dependencies:
string-width "^2.1.1"
strip-ansi "^4.0.0"
wrap-ansi "^2.0.0"
clone-stats@^0.0.1:
version "0.0.1"
resolved "https://registry.yarnpkg.com/clone-stats/-/clone-stats-0.0.1.tgz#b88f94a82cf38b8791d58046ea4029ad88ca99d1"
......@@ -2338,7 +2350,7 @@ isobject@^2.0.0:
dependencies:
isarray "1.0.0"
isomorphic-fetch@^2.1.1:
isomorphic-fetch@^2.1.1, isomorphic-fetch@^2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz#611ae1acf14f5e81f729507472819fe9733558a9"
dependencies:
......@@ -2500,6 +2512,14 @@ jest-environment-node@^21.2.1:
jest-mock "^21.2.0"
jest-util "^21.2.1"
jest-fetch-mock@^1.6.5:
version "1.6.5"
resolved "https://registry.yarnpkg.com/jest-fetch-mock/-/jest-fetch-mock-1.6.5.tgz#178fa1a937ef6f61fb8e8483b6d4602b17e0d96d"
dependencies:
"@types/jest" "^23.0.0"
isomorphic-fetch "^2.2.1"
promise-polyfill "^7.1.1"
jest-get-type@^21.2.0:
version "21.2.0"
resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-21.2.0.tgz#f6376ab9db4b60d81e39f30749c6c466f40d4a23"
......@@ -3569,6 +3589,10 @@ progress@2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.0.tgz#8a1be366bf8fc23db2bd23f10c6fe920b4389d1f"
promise-polyfill@^7.1.1:
version "7.1.2"
resolved "https://registry.yarnpkg.com/promise-polyfill/-/promise-polyfill-7.1.2.tgz#ab05301d8c28536301622d69227632269a70ca3b"
promise@^7.1.1:
version "7.3.1"
resolved "https://registry.yarnpkg.com/promise/-/promise-7.3.1.tgz#064b72602b18f90f29192b8b1bc418ffd1ebd3bf"
......@@ -3649,8 +3673,8 @@ raw-body@~2.1.2:
unpipe "1.0.0"
rc@^1.1.7:
version "1.2.2"
resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.2.tgz#d8ce9cb57e8d64d9c7badd9876c7c34cbe3c7077"
version "1.2.3"
resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.3.tgz#51575a900f8dd68381c710b4712c2154c3e2035b"
dependencies:
deep-extend "~0.4.0"
ini "~1.3.0"
......@@ -3697,8 +3721,8 @@ react-native-confetti@^0.0.6:
resolved "https://registry.yarnpkg.com/react-native-confetti/-/react-native-confetti-0.0.6.tgz#a505e4e5a23bcb2cf554ba51362dfaf3ac17a100"
react-native-config@^0.11.2:
version "0.11.4"
resolved "https://registry.yarnpkg.com/react-native-config/-/react-native-config-0.11.4.tgz#aff3ebeb3b5d3ce217b6d58eadc09b2dff6f6c94"
version "0.11.5"
resolved "https://registry.yarnpkg.com/react-native-config/-/react-native-config-0.11.5.tgz#516cb7b6ec437c7739236ca075971db3aabdcb95"
react-native-dismiss-keyboard@1.0.0:
version "1.0.0"
......@@ -4392,7 +4416,7 @@ string-width@^1.0.1, string-width@^1.0.2:
is-fullwidth-code-point "^1.0.0"
strip-ansi "^3.0.0"
string-width@^2.0.0, string-width@^2.1.0:
string-width@^2.0.0, string-width@^2.1.0, string-width@^2.1.1:
version "2.1.1"
resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e"
dependencies:
......@@ -4529,8 +4553,8 @@ time-stamp@^1.0.0:
resolved "https://registry.yarnpkg.com/time-stamp/-/time-stamp-1.1.0.tgz#764a5a11af50561921b133f3b44e618687e0f5c3"
tipsi-stripe@^4.5.1:
version "4.6.0"
resolved "https://registry.yarnpkg.com/tipsi-stripe/-/tipsi-stripe-4.6.0.tgz#3691e8e538f2364f1598f78f9b6f6a4a1eb88b27"
version "4.6.1"
resolved "https://registry.yarnpkg.com/tipsi-stripe/-/tipsi-stripe-4.6.1.tgz#06aa04775eaecdf0e3ca9a635a6394c95d732c02"
dependencies:
prop-types "^15.5.10"
......@@ -4900,17 +4924,17 @@ yargs-parser@^7.0.0:
dependencies:
camelcase "^4.1.0"
yargs-parser@^8.0.0:
yargs-parser@^8.1.0:
version "8.1.0"
resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-8.1.0.tgz#f1376a33b6629a5d063782944da732631e966950"
dependencies:
camelcase "^4.1.0"
yargs@^10.0.3:
version "10.0.3"
resolved "https://registry.yarnpkg.com/yargs/-/yargs-10.0.3.tgz#6542debd9080ad517ec5048fb454efe9e4d4aaae"
version "10.1.1"
resolved "https://registry.yarnpkg.com/yargs/-/yargs-10.1.1.tgz#5fe1ea306985a099b33492001fa19a1e61efe285"
dependencies:
cliui "^3.2.0"
cliui "^4.0.0"
decamelize "^1.1.1"
find-up "^2.1.0"
get-caller-file "^1.0.1"
......@@ -4921,7 +4945,7 @@ yargs@^10.0.3:
string-width "^2.0.0"
which-module "^2.0.0"
y18n "^3.2.1"
yargs-parser "^8.0.0"
yargs-parser "^8.1.0"
yargs@^8.0.2:
version "8.0.2"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment