Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7274e0f

Browse files
fix: add babel jest
1 parent b0f7c73 commit 7274e0f

File tree

2 files changed

+164
-4
lines changed

2 files changed

+164
-4
lines changed

‎package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108
"@types/jest": "^27.0.3",
109109
"@types/react": "^17.0.35",
110110
"@types/react-dom": "^17.0.11",
111+
"babel-jest": "^27.5.1",
111112
"babel-loader": "^8.2.4",
112113
"css-loader": "^5.0.0",
113114
"husky": "^7.0.4",

‎yarn.lock‎

Lines changed: 163 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@
717717
dependencies:
718718
"@babel/helper-plugin-utils" "^7.14.5"
719719

720-
"@babel/plugin-syntax-top-level-await@^7.14.5":
720+
"@babel/plugin-syntax-top-level-await@^7.14.5", "@babel/plugin-syntax-top-level-await@^7.8.3":
721721
version "7.14.5"
722722
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz#c1cfdadc35a646240001f06138247b741c34d94c"
723723
integrity sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==
@@ -1560,6 +1560,27 @@
15601560
source-map "^0.6.1"
15611561
write-file-atomic "^3.0.0"
15621562

1563+
"@jest/transform@^27.5.1":
1564+
version "27.5.1"
1565+
resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-27.5.1.tgz#6c3501dcc00c4c08915f292a600ece5ecfe1f409"
1566+
integrity sha512-ipON6WtYgl/1329g5AIJVbUuEh0wZVbdpGwC99Jw4LwuoBNS95MVphU6zOeD9pDkon+LLbFL7lOQRapbB8SCHw==
1567+
dependencies:
1568+
"@babel/core" "^7.1.0"
1569+
"@jest/types" "^27.5.1"
1570+
babel-plugin-istanbul "^6.1.1"
1571+
chalk "^4.0.0"
1572+
convert-source-map "^1.4.0"
1573+
fast-json-stable-stringify "^2.0.0"
1574+
graceful-fs "^4.2.9"
1575+
jest-haste-map "^27.5.1"
1576+
jest-regex-util "^27.5.1"
1577+
jest-util "^27.5.1"
1578+
micromatch "^4.0.4"
1579+
pirates "^4.0.4"
1580+
slash "^3.0.0"
1581+
source-map "^0.6.1"
1582+
write-file-atomic "^3.0.0"
1583+
15631584
"@jest/types@^25.5.0":
15641585
version "25.5.0"
15651586
resolved "https://registry.yarnpkg.com/@jest/types/-/types-25.5.0.tgz#4d6a4793f7b9599fc3680877b856a97dbccf2a9d"
@@ -1581,6 +1602,17 @@
15811602
"@types/yargs" "^15.0.0"
15821603
chalk "^4.0.0"
15831604

1605+
"@jest/types@^27.5.1":
1606+
version "27.5.1"
1607+
resolved "https://registry.yarnpkg.com/@jest/types/-/types-27.5.1.tgz#3c79ec4a8ba61c170bf937bcf9e98a9df175ec80"
1608+
integrity sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==
1609+
dependencies:
1610+
"@types/istanbul-lib-coverage" "^2.0.0"
1611+
"@types/istanbul-reports" "^3.0.0"
1612+
"@types/node" "*"
1613+
"@types/yargs" "^16.0.0"
1614+
chalk "^4.0.0"
1615+
15841616
"@jridgewell/resolve-uri@^3.0.3":
15851617
version "3.0.5"
15861618
resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.0.5.tgz#68eb521368db76d040a6315cdb24bf2483037b9c"
@@ -2900,6 +2932,17 @@
29002932
resolved "https://registry.yarnpkg.com/@types/aria-query/-/aria-query-4.2.2.tgz#ed4e0ad92306a704f9fb132a0cfcf77486dbe2bc"
29012933
integrity sha512-HnYpAE1Y6kRyKM/XkEuiRQhTHvkzMBurTHnpFLYLBGPIylZNPs9jJcuOOYWxPLJCSEtmZT0Y8rHDokKN7rRTig==
29022934

2935+
"@types/babel__core@^7.0.0", "@types/babel__core@^7.1.14":
2936+
version "7.1.19"
2937+
resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.1.19.tgz#7b497495b7d1b4812bdb9d02804d0576f43ee460"
2938+
integrity sha512-WEOTgRsbYkvA/KCsDwVEGkd7WAr1e3g31VHQ8zy5gul/V1qKullU/BU5I68X5v7V3GnB9eotmom4v5a5gjxorw==
2939+
dependencies:
2940+
"@babel/parser" "^7.1.0"
2941+
"@babel/types" "^7.0.0"
2942+
"@types/babel__generator" "*"
2943+
"@types/babel__template" "*"
2944+
"@types/babel__traverse" "*"
2945+
29032946
"@types/babel__core@^7.1.7":
29042947
version "7.1.18"
29052948
resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.1.18.tgz#1a29abcc411a9c05e2094c98f9a1b7da6cdf49f8"
@@ -3319,6 +3362,13 @@
33193362
dependencies:
33203363
"@types/yargs-parser" "*"
33213364

3365+
"@types/yargs@^16.0.0":
3366+
version "16.0.4"
3367+
resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-16.0.4.tgz#26aad98dd2c2a38e421086ea9ad42b9e51642977"
3368+
integrity sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==
3369+
dependencies:
3370+
"@types/yargs-parser" "*"
3371+
33223372
"@typescript-eslint/eslint-plugin@^2.12.0":
33233373
version "2.34.0"
33243374
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.34.0.tgz#6f8ce8a46c7dea4a6f1d171d2bb8fbae6dac2be9"
@@ -4185,6 +4235,20 @@ babel-jest@^25.5.1:
41854235
graceful-fs "^4.2.4"
41864236
slash "^3.0.0"
41874237

4238+
babel-jest@^27.5.1:
4239+
version "27.5.1"
4240+
resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-27.5.1.tgz#a1bf8d61928edfefd21da27eb86a695bfd691444"
4241+
integrity sha512-cdQ5dXjGRd0IBRATiQ4mZGlGlRE8kJpjPOixdNRdT+m3UcNqmYWN6rK6nvtXYfY3D76cb8s/O1Ss8ea24PIwcg==
4242+
dependencies:
4243+
"@jest/transform" "^27.5.1"
4244+
"@jest/types" "^27.5.1"
4245+
"@types/babel__core" "^7.1.14"
4246+
babel-plugin-istanbul "^6.1.1"
4247+
babel-preset-jest "^27.5.1"
4248+
chalk "^4.0.0"
4249+
graceful-fs "^4.2.9"
4250+
slash "^3.0.0"
4251+
41884252
babel-loader@^8.0.0:
41894253
version "8.2.3"
41904254
resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-8.2.3.tgz#8986b40f1a64cacfcb4b8429320085ef68b1342d"
@@ -4258,7 +4322,7 @@ babel-plugin-extract-import-names@1.6.22:
42584322
dependencies:
42594323
"@babel/helper-plugin-utils" "7.10.4"
42604324

4261-
babel-plugin-istanbul@^6.0.0:
4325+
babel-plugin-istanbul@^6.0.0, babel-plugin-istanbul@^6.1.1:
42624326
version "6.1.1"
42634327
resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz#fa88ec59232fd9b4e36dbbc540a8ec9a9b47da73"
42644328
integrity sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==
@@ -4278,6 +4342,16 @@ babel-plugin-jest-hoist@^25.5.0:
42784342
"@babel/types" "^7.3.3"
42794343
"@types/babel__traverse" "^7.0.6"
42804344

4345+
babel-plugin-jest-hoist@^27.5.1:
4346+
version "27.5.1"
4347+
resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-27.5.1.tgz#9be98ecf28c331eb9f5df9c72d6f89deb8181c2e"
4348+
integrity sha512-50wCwD5EMNW4aRpOwtqzyZHIewTYNxLA4nhB+09d8BIssfNfzBRhkBIHiaPv1Si226TQSvp8gxAJm2iY2qs2hQ==
4349+
dependencies:
4350+
"@babel/template" "^7.3.3"
4351+
"@babel/types" "^7.3.3"
4352+
"@types/babel__core" "^7.0.0"
4353+
"@types/babel__traverse" "^7.0.6"
4354+
42814355
babel-plugin-macros@^2.0.0, babel-plugin-macros@^2.6.1, babel-plugin-macros@^2.8.0:
42824356
version "2.8.0"
42834357
resolved "https://registry.yarnpkg.com/babel-plugin-macros/-/babel-plugin-macros-2.8.0.tgz#0f958a7cc6556b1e65344465d99111a1e5e10138"
@@ -4376,6 +4450,24 @@ babel-preset-current-node-syntax@^0.1.2:
43764450
"@babel/plugin-syntax-optional-catch-binding" "^7.8.3"
43774451
"@babel/plugin-syntax-optional-chaining" "^7.8.3"
43784452

4453+
babel-preset-current-node-syntax@^1.0.0:
4454+
version "1.0.1"
4455+
resolved "https://registry.yarnpkg.com/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz#b4399239b89b2a011f9ddbe3e4f401fc40cff73b"
4456+
integrity sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==
4457+
dependencies:
4458+
"@babel/plugin-syntax-async-generators" "^7.8.4"
4459+
"@babel/plugin-syntax-bigint" "^7.8.3"
4460+
"@babel/plugin-syntax-class-properties" "^7.8.3"
4461+
"@babel/plugin-syntax-import-meta" "^7.8.3"
4462+
"@babel/plugin-syntax-json-strings" "^7.8.3"
4463+
"@babel/plugin-syntax-logical-assignment-operators" "^7.8.3"
4464+
"@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3"
4465+
"@babel/plugin-syntax-numeric-separator" "^7.8.3"
4466+
"@babel/plugin-syntax-object-rest-spread" "^7.8.3"
4467+
"@babel/plugin-syntax-optional-catch-binding" "^7.8.3"
4468+
"@babel/plugin-syntax-optional-chaining" "^7.8.3"
4469+
"@babel/plugin-syntax-top-level-await" "^7.8.3"
4470+
43794471
babel-preset-jest@^25.5.0:
43804472
version "25.5.0"
43814473
resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-25.5.0.tgz#c1d7f191829487a907764c65307faa0e66590b49"
@@ -4384,6 +4476,14 @@ babel-preset-jest@^25.5.0:
43844476
babel-plugin-jest-hoist "^25.5.0"
43854477
babel-preset-current-node-syntax "^0.1.2"
43864478

4479+
babel-preset-jest@^27.5.1:
4480+
version "27.5.1"
4481+
resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-27.5.1.tgz#91f10f58034cb7989cb4f962b69fa6eef6a6bc81"
4482+
integrity sha512-Nptf2FzlPCWYuJg41HBqXVT8ym6bXOevuCTbhxlUpjwtysGaIWFvDEjp4y+G7fl13FgOdjs7P/DmErqH7da0Ag==
4483+
dependencies:
4484+
babel-plugin-jest-hoist "^27.5.1"
4485+
babel-preset-current-node-syntax "^1.0.0"
4486+
43874487
bail@^1.0.0:
43884488
version "1.0.5"
43894489
resolved "https://registry.yarnpkg.com/bail/-/bail-1.0.5.tgz#b6fa133404a392cbc1f8c4bf63f5953351e7a776"
@@ -5005,6 +5105,11 @@ ci-info@^2.0.0:
50055105
resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-2.0.0.tgz#67a9e964be31a51e15e5010d58e6f12834002f46"
50065106
integrity sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==
50075107

5108+
ci-info@^3.2.0:
5109+
version "3.3.0"
5110+
resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.3.0.tgz#b4ed1fb6818dea4803a55c623041f9165d2066b2"
5111+
integrity sha512-riT/3vI5YpVH6/qomlDnJow6TBee2PBKSEpx3O32EGPYbWGIRsIlGRms3Sm74wYE1JMo8RnO04Hb12+v1J5ICw==
5112+
50085113
ci-job-number@^1.2.2:
50095114
version "1.2.2"
50105115
resolved "https://registry.yarnpkg.com/ci-job-number/-/ci-job-number-1.2.2.tgz#f4e5918fcaeeda95b604f214be7d7d4a961fe0c0"
@@ -7305,7 +7410,7 @@ fsevents@^1.2.7:
73057410
bindings "^1.5.0"
73067411
nan "^2.12.1"
73077412

7308-
fsevents@^2.1.2, fsevents@~2.3.2:
7413+
fsevents@^2.1.2, fsevents@^2.3.2, fsevents@~2.3.2:
73097414
version "2.3.2"
73107415
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a"
73117416
integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==
@@ -8980,6 +9085,26 @@ jest-haste-map@^26.6.2:
89809085
optionalDependencies:
89819086
fsevents "^2.1.2"
89829087

9088+
jest-haste-map@^27.5.1:
9089+
version "27.5.1"
9090+
resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-27.5.1.tgz#9fd8bd7e7b4fa502d9c6164c5640512b4e811e7f"
9091+
integrity sha512-7GgkZ4Fw4NFbMSDSpZwXeBiIbx+t/46nJ2QitkOjvwPYyZmqttu2TDSimMHP1EkPOi4xUZAN1doE5Vd25H4Jng==
9092+
dependencies:
9093+
"@jest/types" "^27.5.1"
9094+
"@types/graceful-fs" "^4.1.2"
9095+
"@types/node" "*"
9096+
anymatch "^3.0.3"
9097+
fb-watchman "^2.0.0"
9098+
graceful-fs "^4.2.9"
9099+
jest-regex-util "^27.5.1"
9100+
jest-serializer "^27.5.1"
9101+
jest-util "^27.5.1"
9102+
jest-worker "^27.5.1"
9103+
micromatch "^4.0.4"
9104+
walker "^1.0.7"
9105+
optionalDependencies:
9106+
fsevents "^2.3.2"
9107+
89839108
jest-jasmine2@^25.5.4:
89849109
version "25.5.4"
89859110
resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-25.5.4.tgz#66ca8b328fb1a3c5364816f8958f6970a8526968"
@@ -9057,6 +9182,11 @@ jest-regex-util@^26.0.0:
90579182
resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-26.0.0.tgz#d25e7184b36e39fd466c3bc41be0971e821fee28"
90589183
integrity sha512-Gv3ZIs/nA48/Zvjrl34bf+oD76JHiGDUxNOVgUjh3j890sblXryjY4rss71fPtD/njchl6PSE2hIhvyWa1eT0A==
90599184

9185+
jest-regex-util@^27.5.1:
9186+
version "27.5.1"
9187+
resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-27.5.1.tgz#4da143f7e9fd1e542d4aa69617b38e4a78365b95"
9188+
integrity sha512-4bfKq2zie+x16okqDXjXn9ql2B0dScQu+vcwe4TvFVhkVyuWLqpZrZtXxLLWoXYgn0E87I6r6GRYHF7wFZBUvg==
9189+
90609190
jest-resolve-dependencies@^25.5.4:
90619191
version "25.5.4"
90629192
resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-25.5.4.tgz#85501f53957c8e3be446e863a74777b5a17397a7"
@@ -9153,6 +9283,14 @@ jest-serializer@^26.6.2:
91539283
"@types/node" "*"
91549284
graceful-fs "^4.2.4"
91559285

9286+
jest-serializer@^27.5.1:
9287+
version "27.5.1"
9288+
resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-27.5.1.tgz#81438410a30ea66fd57ff730835123dea1fb1f64"
9289+
integrity sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w==
9290+
dependencies:
9291+
"@types/node" "*"
9292+
graceful-fs "^4.2.9"
9293+
91569294
jest-snapshot@^25.5.1:
91579295
version "25.5.1"
91589296
resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-25.5.1.tgz#1a2a576491f9961eb8d00c2e5fd479bc28e5ff7f"
@@ -9197,6 +9335,18 @@ jest-util@^26.6.2:
91979335
is-ci "^2.0.0"
91989336
micromatch "^4.0.2"
91999337

9338+
jest-util@^27.5.1:
9339+
version "27.5.1"
9340+
resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-27.5.1.tgz#3ba9771e8e31a0b85da48fe0b0891fb86c01c2f9"
9341+
integrity sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==
9342+
dependencies:
9343+
"@jest/types" "^27.5.1"
9344+
"@types/node" "*"
9345+
chalk "^4.0.0"
9346+
ci-info "^3.2.0"
9347+
graceful-fs "^4.2.9"
9348+
picomatch "^2.2.3"
9349+
92009350
jest-validate@^25.5.0:
92019351
version "25.5.0"
92029352
resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-25.5.0.tgz#fb4c93f332c2e4cf70151a628e58a35e459a413a"
@@ -9268,6 +9418,15 @@ jest-worker@^27.0.2, jest-worker@^27.4.1:
92689418
merge-stream "^2.0.0"
92699419
supports-color "^8.0.0"
92709420

9421+
jest-worker@^27.5.1:
9422+
version "27.5.1"
9423+
resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-27.5.1.tgz#8d146f0900e8973b106b6f73cc1e9a8cb86f8db0"
9424+
integrity sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==
9425+
dependencies:
9426+
"@types/node" "*"
9427+
merge-stream "^2.0.0"
9428+
supports-color "^8.0.0"
9429+
92719430
jest@^25.3.0:
92729431
version "25.5.4"
92739432
resolved "https://registry.yarnpkg.com/jest/-/jest-25.5.4.tgz#f21107b6489cfe32b076ce2adcadee3587acb9db"
@@ -11166,7 +11325,7 @@ pify@^4.0.1:
1116611325
resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231"
1116711326
integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==
1116811327

11169-
pirates@^4.0.0, pirates@^4.0.1:
11328+
pirates@^4.0.0, pirates@^4.0.1, pirates@^4.0.4:
1117011329
version "4.0.5"
1117111330
resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.5.tgz#feec352ea5c3268fb23a37c702ab1699f35a5f3b"
1117211331
integrity sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /