Skip to content

Commit

Permalink
Fixed runClasp tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fantonangeli committed Nov 15, 2021
1 parent 02fdf21 commit 547817d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/common.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import * as fs from "fs";
import { runClasp } from '../src/common';

jest.mock('util', () => ({
promisify: jest.fn(() => {
return jest.fn().mockResolvedValue({ stdout: true});
})
jest.mock('../src/utils', () => ({
__esModule: true, // this property makes it work
execShellCommand: jest.fn().mockResolvedValue({error: null, stdout: "", stderr: ""}),
}));

jest.mock("fs", () => ({
Expand Down

0 comments on commit 547817d

Please sign in to comment.