35% front tests

This commit is contained in:
iqubik
2026-03-29 22:17:34 +03:00
parent 61b814482c
commit 425c1d5e8d
29 changed files with 4942 additions and 15 deletions
+19
View File
@@ -0,0 +1,19 @@
import { describe, it, expect } from 'vitest'
import { APP_VERSION } from '@/utils/version'
describe('version', () => {
describe('APP_VERSION', () => {
it('должен быть строкой', () => {
expect(typeof APP_VERSION).toBe('string')
})
it('должен соответствовать формату семантического версионирования', () => {
const semverRegex = /^\d+\.\d+\.\d+$/
expect(APP_VERSION).toMatch(semverRegex)
})
it('должен быть непустой строкой', () => {
expect(APP_VERSION.length).toBeGreaterThan(0)
})
})
})