-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable back
test-expo-web
job (#464)
* Enable back `test-expo-web` job * Put back the missing `/` * Increase timeouts * Update `puppeteer`
- Loading branch information
Showing
8 changed files
with
445 additions
and
2,627 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import 'expect-puppeteer'; | ||
|
||
jest.setTimeout(30000); | ||
|
||
describe('App', () => { | ||
beforeEach(async () => { | ||
await page.goto('http://localhost:19006'); | ||
await page.waitForSelector('#root'); | ||
}); | ||
|
||
// react-native-url-polyfill isn't applied on React Native Web | ||
it('should not have REACT_NATIVE_URL_POLYFILL', async () => { | ||
await expect(page).toMatchElement('div[data-testid="url-polyfill-version"]', { | ||
text: 'react-native-url-polyfill is not detected', | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** @type {import('jest-environment-puppeteer').JestPuppeteerConfig} */ | ||
module.exports = { | ||
server: { | ||
command: "yarn web", | ||
port: 19006, | ||
launchTimeout: 30000, | ||
}, | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.