feat(create-turbo): create kitchen-sink
This commit is contained in:
commit
4625c93980
80 changed files with 11572 additions and 0 deletions
12
packages/logger/src/__tests__/log.test.ts
Normal file
12
packages/logger/src/__tests__/log.test.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
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");
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue