text: const text = "randomText";
  
  describe("testing LogError", () => {
    const { logError } = require("./formatting");
    const signale = require("signale");
    jest.mock("signale");
  
    beforeEach(() => {
      signale.fatal = jest.fn();
    });
  
    it("should log a text in red bold", () => {
      logError(text);
      expect(signale.fatal).toHaveBeenCalledTimes(1);
      expect(signale.fatal).toHaveBeenCalledWith(text);
    });
  });
  
  describe("testing logInfo", () => {
    const { logInfo } = require("./formatting");
    const chalk = require("chalk");
    const signale = require("signale");
    jest.mock("signale");
  
    beforeEach(() => {
      signale.info = jest.fn();
    });
  
    it("should log a text in green bold", () => {
      logInfo(text);
      expect(signale.info).toHaveBeenCalledTimes(1);
      expect(signale.info).toHaveBeenCalledWith(chalk.bold(text));
    });
  });
  
  describe("testing logComplete", () => {
    const { logComplete } = require("./formatting");
    const chalk = require("chalk");
    const signale = require("signale");
    jest.mock("signale");
  
    beforeEach(() => {
      signale.complete = jest.fn();
    });
  
    it("should log a text in green bold", () => {
      const declaration = "declaration";
      logComplete(text, declaration);
      expect(signale.complete).toHaveBeenCalledTimes(1);
      expect(signale.complete).toHaveBeenCalledWith({
        message: chalk.bold(text),
        prefix: " ",
        suffix: chalk.grey(`(${declaration})`),
      });
    });
  });
  