Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix build errors
  • Loading branch information
seanpoulter committed Jan 18, 2018
commit f557bce4eb5fa788814acd48da74a2190f5fcdf0
2 changes: 1 addition & 1 deletion packages/jest-editor-support/src/Process.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const createProcess = (
const spawnOptions = {
cwd: workspace.rootPath,
env,
...options,
shell: options.shell,
};
return spawn(command, runtimeArgs, spawnOptions);
};
2 changes: 2 additions & 0 deletions packages/jest-editor-support/src/__tests__/runner.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ jest.mock('../Process');
jest.mock('child_process', () => ({spawn: jest.fn()}));
jest.mock('os', () => ({tmpdir: jest.fn()}));
jest.mock('fs', () => {
// $FlowFixMe requireActual
const readFileSync = require.requireActual('fs').readFileSync;

// Replace `readFile` with `readFileSync` so we don't get multiple threads
return {
readFile: (path, type, closure) => {
Expand Down