File tree 2 files changed +20
-5
lines changed
2 files changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -9,14 +9,14 @@ node_js:
9
9
- 14
10
10
- node
11
11
env :
12
- - REACT_NEXT=false
13
- - REACT_NEXT=true
12
+ - REACT_DIST=latest
13
+ - REACT_DIST=next
14
+ - REACT_DIST=experimental
14
15
install :
15
16
- npm install
16
17
# as requested by the React team :)
17
18
# https://reactjs.org/blog/2019/10/22/react-release-channels.html#using-the-next-channel-for-integration-testing
18
- - if [ "$REACT_NEXT" = true ]; then npm install react@next
19
- react-dom@next; fi
19
+ - npm install react@$REACT_DIST react-dom@$REACT_DIST
20
20
script :
21
21
- npm run validate
22
22
- npx codecov@3
@@ -27,7 +27,8 @@ branches:
27
27
28
28
jobs :
29
29
allow_failures :
30
- - env : REACT_NEXT=true
30
+ - REACT_DIST=next
31
+ - REACT_DIST=experimental
31
32
include :
32
33
- stage : release
33
34
node_js : 14
Original file line number Diff line number Diff line change @@ -41,4 +41,18 @@ fireEvent.select = (node, init) => {
41
41
fireEvent . keyUp ( node , init )
42
42
}
43
43
44
+ // React event system tracks native focusout/focusin events for
45
+ // running blur/focus handlers
46
+ // @link https://github.com/facebook/react/pull/19186
47
+ const blur = fireEvent . blur
48
+ const focus = fireEvent . focus
49
+ fireEvent . blur = ( ...args ) => {
50
+ fireEvent . focusOut ( ...args )
51
+ return blur ( ...args )
52
+ }
53
+ fireEvent . focus = ( ...args ) => {
54
+ fireEvent . focusIn ( ...args )
55
+ return focus ( ...args )
56
+ }
57
+
44
58
export { fireEvent }
You can’t perform that action at this time.
0 commit comments