feat(create-turbo): apply official-starter transform
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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");
|
||||
expect(console.log).toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,3 @@
|
||||
export const log = (str: any) => {
|
||||
console.log("logger: " + str);
|
||||
};
|
||||
Reference in New Issue
Block a user