Skip to content

Commit

Permalink
react-native: fix path module use in writePlist test
Browse files Browse the repository at this point in the history
Summary:
@public

Partly fixes facebook/react-native#20260

Reviewed By: rafeca

Differential Revision: D10302150

fbshipit-source-id: 2d9a63b263c9e27c22989c447ce884934f1e4430
  • Loading branch information
Jean Lauliac authored and facebook-github-bot committed Oct 10, 2018
1 parent b0b0b28 commit c5c6c07
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions link/__tests__/ios/writePlist.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,14 @@ const {readFileSync} = require.requireActual('fs');
const fs = require('fs');

const xcode = require('xcode');
const path = require('path');
const writePlist = require('../../ios/writePlist');

const projectPath = path.join(__dirname, '../../__fixtures__/project.pbxproj');
const infoPlistPath = path.join(__dirname, '../../__fixtures__/Info.plist');
const realPath = require.requireActual('path');
const projectPath = realPath.join(
__dirname,
'../../__fixtures__/project.pbxproj',
);
const infoPlistPath = realPath.join(__dirname, '../../__fixtures__/Info.plist');

fs.readFileSync = jest.fn(() => readFileSync(projectPath).toString());

Expand Down

0 comments on commit c5c6c07

Please sign in to comment.