sunrise-cms/test/version.ts

13 lines
331 B
TypeScript

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