File tree Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
module . exports = {
2
- setupFilesAfterEnv : [ "react- testing-library/cleanup-after-each" ] ,
2
+ setupFilesAfterEnv : [ "@ testing-library/react /cleanup-after-each" ] ,
3
3
coverageThreshold : {
4
4
global : {
5
5
branches : 100 ,
Original file line number Diff line number Diff line change 36
36
},
37
37
"homepage" : " https://github.com/romgain/react-select-event#readme" ,
38
38
"dependencies" : {
39
- "dom- testing-library" : " ^4.1.1 "
39
+ "@ testing-library/dom " : " ^5.5.2 "
40
40
},
41
41
"devDependencies" : {
42
42
"@babel/core" : " ^7.4.5" ,
45
45
"@babel/preset-env" : " ^7.4.4" ,
46
46
"@babel/preset-react" : " ^7.0.0" ,
47
47
"@babel/preset-typescript" : " ^7.3.3" ,
48
+ "@testing-library/jest-dom" : " ^4.0.0" ,
49
+ "@testing-library/react" : " ^8.0.4" ,
48
50
"@types/jest" : " ^24.0.13" ,
49
51
"@types/react" : " ^16.8.19" ,
50
52
"@types/react-select" : " ^2.0.19" ,
51
53
"jest" : " ^24.8.0" ,
52
- "jest-dom" : " ^3.4.0" ,
53
54
"prettier" : " ^1.17.1" ,
54
55
"react" : " ^16.8.6" ,
55
56
"react-dom" : " ^16.8.6" ,
56
57
"react-select" : " ^2.4.3" ,
57
- "react-testing-library" : " ^7.0.1" ,
58
58
"rimraf" : " ^2.6.3" ,
59
59
"rollup" : " ^1.12.4" ,
60
60
"rollup-plugin-babel" : " ^4.3.2" ,
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import pkg from "./package.json";
5
5
export default [
6
6
{
7
7
input : "src/index.ts" ,
8
- external : [ "dom- testing-library" ] ,
8
+ external : [ "@ testing-library/dom " ] ,
9
9
plugins : [
10
10
resolve ( { extensions : [ ".js" , ".ts" ] } ) ,
11
11
babel ( { extensions : [ ".js" , ".ts" ] } )
Original file line number Diff line number Diff line change 1
- import "jest-dom/extend-expect" ;
1
+ import "@testing-library/ jest-dom/extend-expect" ;
2
2
import React from "react" ;
3
- import { render , wait } from "react- testing-library" ;
3
+ import { render , wait } from "@ testing-library/react " ;
4
4
import Select from "react-select" ;
5
5
import selectEvent from ".." ;
6
6
let Creatable : any ;
Original file line number Diff line number Diff line change 1
1
/** Simulate user events on react-select dropdowns */
2
2
3
- import { fireEvent , findByText , getByText } from "dom- testing-library" ;
3
+ import { fireEvent , findByText , getByText } from "@ testing-library/dom " ;
4
4
5
5
// find the react-select container from its input field 🤷
6
6
function getReactSelectContainerFromInput ( input : HTMLElement ) : HTMLElement {
You can’t perform that action at this time.
0 commit comments