Skip to content

Commit

Permalink
fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xiongemi committed Aug 4, 2021
1 parent 50c756d commit 5906ddc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions e2e/react-native/src/react-native.test.ts
Expand Up @@ -36,13 +36,15 @@ describe('react native', () => {
);

const iosBundleResult = await runCLIAsync(`bundle-ios ${appName}`);
expect(iosBundleResult).toContain('Done writing bundle output');
expect(iosBundleResult).toContain('Running target "bundle-ios" succeeded');
expect(() =>
checkFilesExist(`dist/apps/${appName}/ios/main.bundle`)
).not.toThrow();

const androidBundleResult = await runCLIAsync(`bundle-android ${appName}`);
expect(androidBundleResult).toContain('Done writing bundle output');
expect(androidBundleResult).toContain(
'Running target "bundle-android" succeeded'
);
expect(() =>
checkFilesExist(`dist/apps/${appName}/android/main.bundle`)
).not.toThrow();
Expand Down

0 comments on commit 5906ddc

Please sign in to comment.