Skip to content

Commit 0079b04

Browse files
committed
Always use latest version of react testing library
1 parent e5d115c commit 0079b04

File tree

3 files changed

+2
-13
lines changed

3 files changed

+2
-13
lines changed

jest.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,5 @@ if (process.env.REACT_VERSION === 'v17') {
3131
...module.exports.moduleNameMapper,
3232
'^react-dom((\\/.*)?)$': 'react-dom-17$1',
3333
'^react((\\/.*)?)$': 'react-17$1',
34-
'^@testing-library/react((\\/.*)?)$': '@testing-library/react-12$1',
3534
};
3635
}

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"devDependencies": {
2525
"@testing-library/jest-dom": "^5.14.1",
2626
"@testing-library/react": "^13.1.1",
27-
"@testing-library/react-12": "npm:@testing-library/react@^12.1.2",
2827
"@types/jest": "^27.0.2",
2928
"@types/react": "^18.0.0",
3029
"@types/react-dom": "^18.0.0",

yarn.lock

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@
703703
dependencies:
704704
defer-to-connect "^2.0.0"
705705

706-
"@testing-library/dom@^8.0.0", "@testing-library/dom@^8.5.0":
706+
"@testing-library/dom@^8.5.0":
707707
version "8.13.0"
708708
resolved "https://registry.yarnpkg.com/@testing-library/dom/-/dom-8.13.0.tgz#bc00bdd64c7d8b40841e27a70211399ad3af46f5"
709709
integrity sha512-9VHgfIatKNXQNaZTtLnalIy0jNZzY35a4S3oi08YAt9Hv1VsfZ/DfA45lM8D/UhtHBGJ4/lGwp0PZkVndRkoOQ==
@@ -732,15 +732,6 @@
732732
lodash "^4.17.15"
733733
redent "^3.0.0"
734734

735-
"@testing-library/react-12@npm:@testing-library/react@^12.1.2":
736-
version "12.1.4"
737-
resolved "https://registry.yarnpkg.com/@testing-library/react/-/react-12.1.4.tgz#09674b117e550af713db3f4ec4c0942aa8bbf2c0"
738-
integrity sha512-jiPKOm7vyUw311Hn/HlNQ9P8/lHNtArAx0PisXyFixDDvfl8DbD6EUdbshK5eqauvBSvzZd19itqQ9j3nferJA==
739-
dependencies:
740-
"@babel/runtime" "^7.12.5"
741-
"@testing-library/dom" "^8.0.0"
742-
"@types/react-dom" "*"
743-
744735
"@testing-library/react@^13.1.1":
745736
version "13.1.1"
746737
resolved "https://registry.yarnpkg.com/@testing-library/react/-/react-13.1.1.tgz#6c1635e25acca8ca5be8ee3b19ad1391681c5846"
@@ -879,7 +870,7 @@
879870
resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.4.tgz#fcf7205c25dff795ee79af1e30da2c9790808f11"
880871
integrity sha512-rZ5drC/jWjrArrS8BR6SIr4cWpW09RNTYt9AMZo3Jwwif+iacXAqgVjm0B0Bv/S1jhDXKHqRVNCbACkJ89RAnQ==
881872

882-
"@types/react-dom@*", "@types/react-dom@^18.0.0":
873+
"@types/react-dom@^18.0.0":
883874
version "18.0.0"
884875
resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-18.0.0.tgz#b13f8d098e4b0c45df4f1ed123833143b0c71141"
885876
integrity sha512-49897Y0UiCGmxZqpC8Blrf6meL8QUla6eb+BBhn69dTXlmuOlzkfr7HHY/O8J25e1lTUMs+YYxSlVDAaGHCOLg==

0 commit comments

Comments
 (0)