sunrise-cms/test/version.ts

13 lines
384 B
TypeScript

import assert from 'node:assert'
import fs from 'node:fs'
import { describe, it } from 'node:test'
import { version } from '../version.js'
await describe('version', async () => {
await it('has a version that matches the package.json', () => {
const packageJSON = JSON.parse(fs.readFileSync('package.json', 'utf8'))
assert.strictEqual(version, packageJSON.version)
})
})