Skip to content

Commit

Permalink
fix: removes warning logs from Jest CLI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmeese7 committed Sep 26, 2023
1 parent 95754c3 commit 90220d6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions development/cli/__tests__/tasks/discover.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ describe("task > package:discover", () => {
const root = temp.mkdirSync("meese-cli-jest");
const fname = (str) => createPath(root, str);

beforeAll(() => {
jest.spyOn(console, "warn").mockImplementation(() => {});
});

afterAll(() => fs.removeSync(root));

test("should discover packages", async () => {
Expand Down
4 changes: 4 additions & 0 deletions development/cli/__tests__/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ const path = require("path");
const utils = require("../src/utils.js");

describe("utils", () => {
beforeAll(() => {
jest.spyOn(console, "warn").mockImplementation(() => {});
});

describe("createOptions", () => {
test("should create structured object", () => {
const options = utils.createOptions({
Expand Down

0 comments on commit 90220d6

Please sign in to comment.