12 lines
340 B
TypeScript
12 lines
340 B
TypeScript
import { describe, it, expect, jest } from "@jest/globals";
|
|
import { log } from "..";
|
|
|
|
jest.spyOn(global.console, "log");
|
|
|
|
describe("@repo/logger", () => {
|
|
it("prints a message", () => {
|
|
log("hello");
|
|
// eslint-disable-next-line no-console -- testing console
|
|
expect(console.log).toBeCalledWith("LOGGER: ", "hello");
|
|
});
|
|
});
|