mirror of
				https://gitcode.com/gh_mirrors/re/react-native-pushy.git
				synced 2025-10-31 21:33:12 +08:00 
			
		
		
		
	feat: fix
This commit is contained in:
		
							
								
								
									
										12
									
								
								e2e/jest.config.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								e2e/jest.config.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| /** @type {import('@jest/types').Config.InitialOptions} */ | ||||
| module.exports = { | ||||
|   rootDir: '..', | ||||
|   testMatch: ['<rootDir>/e2e/**/*.test.js'], | ||||
|   testTimeout: 120000, | ||||
|   maxWorkers: 1, | ||||
|   globalSetup: 'detox/runners/jest/globalSetup', | ||||
|   globalTeardown: 'detox/runners/jest/globalTeardown', | ||||
|   reporters: ['detox/runners/jest/reporter'], | ||||
|   testEnvironment: 'detox/runners/jest/testEnvironment', | ||||
|   verbose: true, | ||||
| }; | ||||
							
								
								
									
										23
									
								
								e2e/starter.test.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								e2e/starter.test.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,23 @@ | ||||
| describe('Example', () => { | ||||
|   beforeAll(async () => { | ||||
|     await device.launchApp(); | ||||
|   }); | ||||
|  | ||||
|   beforeEach(async () => { | ||||
|     await device.reloadReactNative(); | ||||
|   }); | ||||
|  | ||||
|   it('should have welcome screen', async () => { | ||||
|     await expect(element(by.id('welcome'))).toBeVisible(); | ||||
|   }); | ||||
|  | ||||
|   it('should show hello screen after tap', async () => { | ||||
|     await element(by.id('hello_button')).tap(); | ||||
|     await expect(element(by.text('Hello!!!'))).toBeVisible(); | ||||
|   }); | ||||
|  | ||||
|   it('should show world screen after tap', async () => { | ||||
|     await element(by.id('world_button')).tap(); | ||||
|     await expect(element(by.text('World!!!'))).toBeVisible(); | ||||
|   }); | ||||
| }); | ||||
		Reference in New Issue
	
	Block a user
	 steven
					steven