Skip to content

Commit

Permalink
Fix test_windows by specifying a cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
cortinico committed May 18, 2022
1 parent 8a8c33a commit d9e1e43
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/__tests__/hermes-utils-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ let execCalls;
let fs;
let shelljs;

// We set the chdir to the current directory as on Windows
// tests are failing due to missing .cwd() method definition.
const process = require('process');
process.chdir(__dirname);

jest.mock('shelljs', () => ({
echo: jest.fn(),
exec: jest.fn(command => {
Expand Down

0 comments on commit d9e1e43

Please sign in to comment.