Skip to content

Commit

Permalink
Merge pull request #340 from Microsoft/fix/jest-mock-paths
Browse files Browse the repository at this point in the history
Fix jest mocks paths
  • Loading branch information
dhei authored Jun 27, 2018
2 parents 904a442 + e7992ca commit 8efd255
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion appcenter/test/SetupAppCenterMock.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const path = require('path');
module.exports = {
setupMock(moduleName, setupFileName) {
const projectDirectory = path.resolve(__dirname, '..', '..', '..');
const setupFileNamePath = `.${path.sep}node_modules${path.sep}${moduleName}${path.sep}test${path.sep}${setupFileName}`;
const setupFileNamePath = `<rootDir>${path.sep}node_modules${path.sep}${moduleName}${path.sep}test${path.sep}${setupFileName}`;

// Check if package.json has jest as dependency
let packageJson = '';
Expand Down

0 comments on commit 8efd255

Please sign in to comment.