-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: replace jest with vitest in backend project
- Loading branch information
1 parent
eb57ef0
commit 0915673
Showing
12 changed files
with
1,874 additions
and
3,297 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
import {customLogger} from './logger.config'; | ||
import { customLogger } from "./logger.config"; | ||
|
||
describe('CustomLogger', () => { | ||
it('should be defined', () => { | ||
describe("CustomLogger", () => { | ||
it("should be defined", () => { | ||
expect(customLogger).toBeDefined(); | ||
}); | ||
|
||
it('should log a message', () => { | ||
|
||
const spy = jest.spyOn(customLogger, 'verbose'); | ||
customLogger.verbose('Test message'); | ||
expect(spy).toHaveBeenCalledWith('Test message'); | ||
it("should log a message", () => { | ||
const spy = vi.spyOn(customLogger, "verbose"); | ||
customLogger.verbose("Test message"); | ||
expect(spy).toHaveBeenCalledWith("Test message"); | ||
spy.mockRestore(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.