Sink/tests/sink.spec.ts
ccbikai a6ea1391f2 feat(test): add comprehensive testing guidelines
Establishes clear testing standards and best practices:

- Mandates unit testing for all API endpoints
- Defines test organization and file structure
- Introduces testing scope and strategy
- Documents best practices for writing tests
- Sets minimum coverage requirements (80%)
- Adds test data management guidelines

Updates project documentation to reflect testing requirements and development workflow. Includes practical examples of good testing patterns and proper test organization.
2025-05-28 19:50:56 +08:00

12 lines
326 B
TypeScript

import { fetch, setup } from '@nuxt/test-utils/e2e'
import { describe, expect, it } from 'vitest'
import { config } from './config'
describe('sink test', async () => {
await setup(config)
it('home page should return 200', async () => {
const response = await fetch('/')
expect(response.status).toBe(200)
})
})