Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 233f80d

Browse files
committed
Fix tests
e2e flowconfig needed update, plus tweaks
1 parent 7ce8cd7 commit 233f80d

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ project.xcworkspace
2828
# Node
2929
node_modules
3030
*.log
31+
.nvm

Examples/SampleApp/_flowconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,13 @@ node_modules/react-native/Libraries/react-native/react-native-interface.js
3232
[options]
3333
module.system=haste
3434

35+
suppress_type=$FlowIssue
36+
suppress_type=$FlowFixMe
37+
suppress_type=$FixMe
38+
39+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(1[0-3]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
40+
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(1[0-3]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)? #[0-9]+
41+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
42+
3543
[version]
3644
0.13.1

local-cli/__tests__/install-test.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe('setup Podfile', function() {
1818

1919
it('creates a Podfile if none exists', function() {
2020
try {
21-
fs.unlinkSync(path.resolve(__dirname, 'Podfile'));
21+
fs.unlinkSync(path.resolve(__dirname, '../Podfile'));
2222
} catch(e) {}
2323

2424
var setupPodfile = install.setupPodfile();
@@ -37,8 +37,11 @@ describe('setup Podfile', function() {
3737
expect(setupPodfile.podfileText).toContain(openingReactTag);
3838
expect(setupPodfile.podfileText).toContain(closingReactTag);
3939

40+
// cleanup
4041
try {
41-
fs.unlinkSync(path.resolve(__dirname, 'Podfile'));
42-
} catch(e) {}
42+
fs.unlinkSync(path.resolve(__dirname, '../Podfile'));
43+
} catch(e) {
44+
throw new Error('failed to cleanup Podfile', e);
45+
}
4346
});
4447
});

0 commit comments

Comments
 (0)