File tree Expand file tree Collapse file tree 8 files changed +445
-2627
lines changed Expand file tree Collapse file tree 8 files changed +445
-2627
lines changed Original file line number Diff line number Diff line change @@ -340,13 +340,6 @@ workflows:
340
340
requires :
341
341
- lint
342
342
- test-js
343
- # - test-expo-web:
344
- # matrix:
345
- # parameters:
346
- # expo-version: ['43', '44']
347
- # requires:
348
- # - lint
349
- # - test-js
350
343
- test-hermes-ios :
351
344
matrix :
352
345
parameters :
@@ -359,3 +352,10 @@ workflows:
359
352
react-native-version : ['0.68']
360
353
requires :
361
354
- test-android-<< matrix.react-native-version >>
355
+ - test-expo-web :
356
+ matrix :
357
+ parameters :
358
+ expo-version : ['48']
359
+ requires :
360
+ - lint
361
+ - test-js
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ function testCreateObjectURL() {
22
22
const PolyfillTests = ( ) => (
23
23
< >
24
24
< Text testID = "url-polyfill-version" >
25
- { global . REACT_NATIVE_URL_POLYFILL }
25
+ { global . REACT_NATIVE_URL_POLYFILL ?? 'react-native-url-polyfill is not detected' }
26
26
</ Text >
27
27
< Text testID = "url-test-1" > { new URL ( 'dev' , 'https://google.dev' ) . href } </ Text >
28
28
< Text testID = "url-test-2" >
Original file line number Diff line number Diff line change
1
+ import 'expect-puppeteer' ;
2
+
3
+ jest . setTimeout ( 30000 ) ;
4
+
5
+ describe ( 'App' , ( ) => {
6
+ beforeEach ( async ( ) => {
7
+ await page . goto ( 'http://localhost:19006' ) ;
8
+ await page . waitForSelector ( '#root' ) ;
9
+ } ) ;
10
+
11
+ // react-native-url-polyfill isn't applied on React Native Web
12
+ it ( 'should not have REACT_NATIVE_URL_POLYFILL' , async ( ) => {
13
+ await expect ( page ) . toMatchElement ( 'div[data-testid="url-polyfill-version"]' , {
14
+ text : 'react-native-url-polyfill is not detected' ,
15
+ } ) ;
16
+ } ) ;
17
+ } ) ;
Original file line number Diff line number Diff line change
1
+ /** @type {import('jest-environment-puppeteer').JestPuppeteerConfig } */
2
+ module . exports = {
3
+ server : {
4
+ command : "yarn web" ,
5
+ port : 19006 ,
6
+ launchTimeout : 30000 ,
7
+ } ,
8
+ } ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 7
7
"android" : " expo run:android" ,
8
8
"ios" : " expo run:ios" ,
9
9
"web" : " NODE_OPTIONS=--openssl-legacy-provider expo start --web" ,
10
- "test:web" : " jest"
10
+ "test:web" : " NODE_OPTIONS=--openssl-legacy-provider jest"
11
11
},
12
12
"dependencies" : {
13
13
"expo" : " ~48.0.18" ,
24
24
"babel-loader" : " ^8.2.3" ,
25
25
"jest" : " ^29.5.0" ,
26
26
"jest-expo" : " ^48.0.2" ,
27
- "jest-expo- puppeteer" : " ^1.4.4 " ,
28
- "puppeteer" : " ^20.7.4 "
27
+ "jest-puppeteer" : " ^9.0.2 " ,
28
+ "puppeteer" : " ^21.6.1 "
29
29
},
30
30
"jest" : {
31
- "preset" : " jest-expo- puppeteer" ,
31
+ "preset" : " jest-puppeteer" ,
32
32
"projects" : [
33
- " ../../jest-puppeteer "
33
+ " <rootDir> "
34
34
]
35
35
},
36
36
"private" : true
You can’t perform that action at this time.
0 commit comments