mirror of
https://github.com/hanzoai/ui.git
synced 2026-11-20 22:36:27 +00:00
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
10 lines
233 B
TypeScript
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)
|
|
})
|
|
})
|