Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
e2e flowconfig needed update, plus tweaks
  • Loading branch information
sahrens committed Jul 9, 2015
1 parent 7ce8cd7 commit 233f80d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ project.xcworkspace
# Node
node_modules
*.log
.nvm
8 changes: 8 additions & 0 deletions Examples/SampleApp/_flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,13 @@ node_modules/react-native/Libraries/react-native/react-native-interface.js
[options]
module.system=haste

suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FixMe

suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(1[0-3]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(1[0-3]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy

[version]
0.13.1
9 changes: 6 additions & 3 deletions local-cli/__tests__/install-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('setup Podfile', function() {

it('creates a Podfile if none exists', function() {
try {
fs.unlinkSync(path.resolve(__dirname, 'Podfile'));
fs.unlinkSync(path.resolve(__dirname, '../Podfile'));
} catch(e) {}

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

// cleanup
try {
fs.unlinkSync(path.resolve(__dirname, 'Podfile'));
} catch(e) {}
fs.unlinkSync(path.resolve(__dirname, '../Podfile'));
} catch(e) {
throw new Error('failed to cleanup Podfile', e);
}
});
});

0 comments on commit 233f80d

Please sign in to comment.