Skip to content

Commit

Permalink
Fixed test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Hargne committed Mar 30, 2020
1 parent 7c882f4 commit 549bb48
Show file tree
Hide file tree
Showing 3 changed files with 117 additions and 2 deletions.
3 changes: 2 additions & 1 deletion jest.config.json
@@ -1,7 +1,8 @@
{
"roots": ["<rootDir>"],
"preset": "ts-jest",
"transform": {
"^.+\\.tsx?$": "ts-jest"
"^.+\\.tsx?$": "babel-jest"
},
"collectCoverage": true,
"collectCoverageFrom": [
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -59,6 +59,7 @@
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^7.1.1",
"babel-jest": "^25.2.4",
"jest": "^25.1.0",
"rollup": "1.20.0",
"rollup-plugin-babel": "^4.4.0",
Expand Down
115 changes: 114 additions & 1 deletion yarn.lock
Expand Up @@ -962,6 +962,28 @@
source-map "^0.6.1"
write-file-atomic "^3.0.0"

"@jest/transform@^25.2.4":
version "25.2.4"
resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-25.2.4.tgz#34336f37f13f62f7d1f5b93d5d150ba9eb3e11b9"
integrity sha512-6eRigvb+G6bs4kW5j1/y8wu4nCrmVuIe0epPBbiWaYlwawJ8yi1EIyK3d/btDqmBpN5GpN4YhR6iPPnDmkYdTA==
dependencies:
"@babel/core" "^7.1.0"
"@jest/types" "^25.2.3"
babel-plugin-istanbul "^6.0.0"
chalk "^3.0.0"
convert-source-map "^1.4.0"
fast-json-stable-stringify "^2.0.0"
graceful-fs "^4.2.3"
jest-haste-map "^25.2.3"
jest-regex-util "^25.2.1"
jest-util "^25.2.3"
micromatch "^4.0.2"
pirates "^4.0.1"
realpath-native "^2.0.0"
slash "^3.0.0"
source-map "^0.6.1"
write-file-atomic "^3.0.0"

"@jest/types@^25.1.0":
version "25.1.0"
resolved "https://registry.yarnpkg.com/@jest/types/-/types-25.1.0.tgz#b26831916f0d7c381e11dbb5e103a72aed1b4395"
Expand All @@ -972,6 +994,16 @@
"@types/yargs" "^15.0.0"
chalk "^3.0.0"

"@jest/types@^25.2.3":
version "25.2.3"
resolved "https://registry.yarnpkg.com/@jest/types/-/types-25.2.3.tgz#035c4fb94e2da472f359ff9a211915d59987f6b6"
integrity sha512-6oLQwO9mKif3Uph3RX5J1i3S7X7xtDHWBaaaoeKw8hOzV6YUd0qDcYcHZ6QXMHDIzSr7zzrEa51o2Ovlj6AtKQ==
dependencies:
"@types/istanbul-lib-coverage" "^2.0.0"
"@types/istanbul-reports" "^1.1.1"
"@types/yargs" "^15.0.0"
chalk "^3.0.0"

"@rollup/plugin-node-resolve@^7.1.1":
version "7.1.1"
resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-7.1.1.tgz#8c6e59c4b28baf9d223028d0e450e06a485bb2b7"
Expand Down Expand Up @@ -1321,6 +1353,19 @@ babel-jest@^25.1.0:
chalk "^3.0.0"
slash "^3.0.0"

babel-jest@^25.2.4:
version "25.2.4"
resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-25.2.4.tgz#b21b68d3af8f161c3e6e501e91f0dea8e652e344"
integrity sha512-+yDzlyJVWrqih9i2Cvjpt7COaN8vUwCsKGtxJLzg6I0xhxD54K8mvDUCliPKLufyzHh/c5C4MRj4Vk7VMjOjIg==
dependencies:
"@jest/transform" "^25.2.4"
"@jest/types" "^25.2.3"
"@types/babel__core" "^7.1.0"
babel-plugin-istanbul "^6.0.0"
babel-preset-jest "^25.2.1"
chalk "^3.0.0"
slash "^3.0.0"

babel-plugin-dynamic-import-node@^2.3.0:
version "2.3.0"
resolved "https://registry.yarnpkg.com/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.0.tgz#f00f507bdaa3c3e3ff6e7e5e98d90a7acab96f7f"
Expand All @@ -1346,6 +1391,13 @@ babel-plugin-jest-hoist@^25.1.0:
dependencies:
"@types/babel__traverse" "^7.0.6"

babel-plugin-jest-hoist@^25.2.1:
version "25.2.1"
resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-25.2.1.tgz#d0003a1f3d5caa281e1107fe03bbf16b799f9955"
integrity sha512-HysbCQfJhxLlyxDbKcB2ucGYV0LjqK4h6dBoI3RtFuOxTiTWK6XGZMsHb0tGh8iJdV4hC6Z2GCHzVvDeh9i0lQ==
dependencies:
"@types/babel__traverse" "^7.0.6"

babel-preset-jest@^25.1.0:
version "25.1.0"
resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-25.1.0.tgz#d0aebfebb2177a21cde710996fce8486d34f1d33"
Expand All @@ -1355,6 +1407,15 @@ babel-preset-jest@^25.1.0:
"@babel/plugin-syntax-object-rest-spread" "^7.0.0"
babel-plugin-jest-hoist "^25.1.0"

babel-preset-jest@^25.2.1:
version "25.2.1"
resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-25.2.1.tgz#4ccd0e577f69aa11b71806edfe8b25a5c3ac93a2"
integrity sha512-zXHJBM5iR8oEO4cvdF83AQqqJf3tJrXy3x8nfu2Nlqvn4cneg4Ca8M7cQvC5S9BzDDy1O0tZ9iXru9J6E3ym+A==
dependencies:
"@babel/plugin-syntax-bigint" "^7.0.0"
"@babel/plugin-syntax-object-rest-spread" "^7.0.0"
babel-plugin-jest-hoist "^25.2.1"

balanced-match@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"
Expand Down Expand Up @@ -2627,6 +2688,25 @@ jest-haste-map@^25.1.0:
optionalDependencies:
fsevents "^2.1.2"

jest-haste-map@^25.2.3:
version "25.2.3"
resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-25.2.3.tgz#2649392b5af191f0167a27bfb62e5d96d7eaaade"
integrity sha512-pAP22OHtPr4qgZlJJFks2LLgoQUr4XtM1a+F5UaPIZNiCRnePA0hM3L7aiJ0gzwiNIYwMTfKRwG/S1L28J3A3A==
dependencies:
"@jest/types" "^25.2.3"
anymatch "^3.0.3"
fb-watchman "^2.0.0"
graceful-fs "^4.2.3"
jest-serializer "^25.2.1"
jest-util "^25.2.3"
jest-worker "^25.2.1"
micromatch "^4.0.2"
sane "^4.0.3"
walker "^1.0.7"
which "^2.0.2"
optionalDependencies:
fsevents "^2.1.2"

jest-jasmine2@^25.1.0:
version "25.1.0"
resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-25.1.0.tgz#681b59158a430f08d5d0c1cce4f01353e4b48137"
Expand Down Expand Up @@ -2699,6 +2779,11 @@ jest-regex-util@^25.1.0:
resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-25.1.0.tgz#efaf75914267741838e01de24da07b2192d16d87"
integrity sha512-9lShaDmDpqwg+xAd73zHydKrBbbrIi08Kk9YryBEBybQFg/lBWR/2BDjjiSE7KIppM9C5+c03XiDaZ+m4Pgs1w==

jest-regex-util@^25.2.1:
version "25.2.1"
resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-25.2.1.tgz#db64b0d15cd3642c93b7b9627801d7c518600584"
integrity sha512-wroFVJw62LdqTdkL508ZLV82FrJJWVJMIuYG7q4Uunl1WAPTf4ftPKrqqfec4SvOIlvRZUdEX2TFpWR356YG/w==

jest-resolve-dependencies@^25.1.0:
version "25.1.0"
resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-25.1.0.tgz#8a1789ec64eb6aaa77fd579a1066a783437e70d2"
Expand Down Expand Up @@ -2780,6 +2865,11 @@ jest-serializer@^25.1.0:
resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-25.1.0.tgz#73096ba90e07d19dec4a0c1dd89c355e2f129e5d"
integrity sha512-20Wkq5j7o84kssBwvyuJ7Xhn7hdPeTXndnwIblKDR2/sy1SUm6rWWiG9kSCgJPIfkDScJCIsTtOKdlzfIHOfKA==

jest-serializer@^25.2.1:
version "25.2.1"
resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-25.2.1.tgz#51727a5fc04256f461abe0fa024a022ba165877a"
integrity sha512-fibDi7M5ffx6c/P66IkvR4FKkjG5ldePAK1WlbNoaU4GZmIAkS9Le/frAwRUFEX0KdnisSPWf+b1RC5jU7EYJQ==

jest-snapshot@^25.1.0:
version "25.1.0"
resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-25.1.0.tgz#d5880bd4b31faea100454608e15f8d77b9d221d9"
Expand Down Expand Up @@ -2809,6 +2899,16 @@ jest-util@^25.1.0:
is-ci "^2.0.0"
mkdirp "^0.5.1"

jest-util@^25.2.3:
version "25.2.3"
resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-25.2.3.tgz#0abf95a1d6b96f2de5a3ecd61b36c40a182dc256"
integrity sha512-7tWiMICVSo9lNoObFtqLt9Ezt5exdFlWs5fLe1G4XLY2lEbZc814cw9t4YHScqBkWMfzth8ASHKlYBxiX2rdCw==
dependencies:
"@jest/types" "^25.2.3"
chalk "^3.0.0"
is-ci "^2.0.0"
make-dir "^3.0.0"

jest-validate@^25.1.0:
version "25.1.0"
resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-25.1.0.tgz#1469fa19f627bb0a9a98e289f3e9ab6a668c732a"
Expand Down Expand Up @@ -2849,6 +2949,14 @@ jest-worker@^25.1.0:
merge-stream "^2.0.0"
supports-color "^7.0.0"

jest-worker@^25.2.1:
version "25.2.1"
resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-25.2.1.tgz#209617015c768652646aa33a7828cc2ab472a18a"
integrity sha512-IHnpekk8H/hCUbBlfeaPZzU6v75bqwJp3n4dUrQuQOAgOneI4tx3jV2o8pvlXnDfcRsfkFIUD//HWXpCmR+evQ==
dependencies:
merge-stream "^2.0.0"
supports-color "^7.0.0"

jest@^25.1.0:
version "25.1.0"
resolved "https://registry.yarnpkg.com/jest/-/jest-25.1.0.tgz#b85ef1ddba2fdb00d295deebbd13567106d35be9"
Expand Down Expand Up @@ -3546,6 +3654,11 @@ realpath-native@^1.1.0:
dependencies:
util.promisify "^1.0.0"

realpath-native@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/realpath-native/-/realpath-native-2.0.0.tgz#7377ac429b6e1fd599dc38d08ed942d0d7beb866"
integrity sha512-v1SEYUOXXdbBZK8ZuNgO4TBjamPsiSgcFr0aP+tEKpQZK8vooEUqV6nm6Cv502mX4NF2EfsnVqtNAHG+/6Ur1Q==

regenerate-unicode-properties@^8.2.0:
version "8.2.0"
resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-8.2.0.tgz#e5de7111d655e7ba60c057dbe9ff37c87e65cdec"
Expand Down Expand Up @@ -4444,7 +4557,7 @@ which@^1.2.9, which@^1.3.1:
dependencies:
isexe "^2.0.0"

which@^2.0.1:
which@^2.0.1, which@^2.0.2:
version "2.0.2"
resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1"
integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==
Expand Down

0 comments on commit 549bb48

Please sign in to comment.