mirror of
https://github.com/status-im/react-native.git
synced 2025-02-22 14:18:23 +00:00
react-native: fix path module use in writePlist test
Summary: @public Partly fixes https://github.com/facebook/react-native/issues/20260 Reviewed By: rafeca Differential Revision: D10302150 fbshipit-source-id: 2d9a63b263c9e27c22989c447ce884934f1e4430
This commit is contained in:
parent
15c05988e9
commit
3184cab60f
@ -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());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user