Initial commit

This commit is contained in:
AI
2026-05-03 07:26:12 +00:00
commit 776d374b59
57 changed files with 15968 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
import { beforeEach, describe, expect, it, vi } from 'vitest'
import { useLogger } from '../app/composables/useLogger'
describe('useLogger', () => {
beforeEach(() => {
vi.restoreAllMocks()
vi.unstubAllGlobals()
})
it('returns the logger injected into the Nuxt app', () => {
const logger = {
debug: vi.fn(),
info: vi.fn(),
warn: vi.fn(),
error: vi.fn()
}
vi.stubGlobal('useNuxtApp', () => ({
$logger: logger
}))
expect(useLogger()).toBe(logger)
})
})