feat: add schemata schema validation tests (#689)

Co-authored-by: alltheseas <alltheseas@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: alltheseas <64376233+alltheseas@users.noreply.github.com>
This commit is contained in:
Cody Tseng 2026-04-04 15:18:04 +08:00 committed by GitHub
parent 234010c385
commit b00ff341c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 3210 additions and 68 deletions

19
vitest.config.ts Normal file
View file

@ -0,0 +1,19 @@
import path from 'path'
import { defineConfig } from 'vitest/config'
export default defineConfig({
define: {
'import.meta.env.GIT_COMMIT': '"test"',
'import.meta.env.APP_VERSION': '"0.0.0"',
'import.meta.env.VITE_COMMUNITY_RELAY_SETS': '[]',
'import.meta.env.VITE_COMMUNITY_RELAYS': '[]'
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src')
}
},
test: {
include: ['src/**/*.spec.ts']
}
})