Skip to content

Commit 5cbbc3e

Browse files
authored
test: fix react-native integration test (#481)
1 parent 2d4455b commit 5cbbc3e

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

e2e/ngx-deploy-npm-e2e/integration/react-native.spec.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,26 @@ import {
44
installDependencies,
55
generateLib,
66
installNgxDeployNPMProject,
7+
currentNrwlVersion,
78
} from '../utils';
89

910
describe('React Native', () => {
1011
initNgxDeployNPMProject();
1112

1213
const libName = 'react-native-lib';
1314
const nxPlugin = '@nrwl/react-native';
14-
15-
installDependencies(nxPlugin);
16-
1715
const uniqLibName = uniq(libName);
1816

19-
generateLib(nxPlugin, uniqLibName);
17+
installDependencies(nxPlugin);
2018

2119
beforeEach(() => {
2220
runNxCommand(`generate ${nxPlugin}:init`);
23-
runCommand('yarn add -D @babel/preset-react @nrwl/web');
24-
}, 120000);
21+
runCommand(
22+
`yarn add -D @babel/preset-react @nrwl/web@${currentNrwlVersion}`
23+
);
24+
});
25+
26+
generateLib(nxPlugin, uniqLibName);
2527

2628
beforeEach(() => {
2729
runNxCommand(

0 commit comments

Comments
 (0)