Files
ui/pkg/react/test/version.test.ts
Anthon Linton ca5c620504 fix(react): dynamically inject VERSION from package.json and add version test
Import version from package.json in src/index.ts so VERSION stays in sync with
package.json releases, and add test/version.test.ts asserting that VERSION matches
package.json.

Fixes #258
2026-10-27 00:49:52 +00:00

10 lines
233 B
TypeScript

import { describe, it, expect } from 'vitest'
import { VERSION } from '../src'
import pkg from '../package.json'
describe('VERSION', () => {
it('matches package.json version', () => {
expect(VERSION).toBe(pkg.version)
})
})