feat: initial commit - oncology literature search platform
OncoLit: a multi-tenant oncology literature search, feed, and collaboration platform. Built with FastAPI + Vue 3 + PostgreSQL. Includes PubMed pipeline, drug approvals, AI summaries, and systematic review tools.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import { describe, it, expect } from 'vitest'
|
||||
|
||||
describe('placeholder', () => {
|
||||
it('should pass', () => {
|
||||
expect(1 + 1).toBe(2)
|
||||
})
|
||||
})
|
||||
@@ -0,0 +1,23 @@
|
||||
import { vi } from 'vitest'
|
||||
|
||||
// Mock Naive UI composables used by useToast and components
|
||||
// Keep all component exports via importOriginal so shallowMount can resolve them
|
||||
vi.mock('naive-ui', async (importOriginal) => {
|
||||
const mod: Record<string, unknown> = await importOriginal()
|
||||
return {
|
||||
...mod,
|
||||
useMessage: () => ({
|
||||
success: vi.fn(),
|
||||
error: vi.fn(),
|
||||
warning: vi.fn(),
|
||||
info: vi.fn(),
|
||||
}),
|
||||
useDialog: () => ({
|
||||
success: vi.fn(),
|
||||
error: vi.fn(),
|
||||
warning: vi.fn(),
|
||||
info: vi.fn(),
|
||||
}),
|
||||
create: vi.fn(),
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user