Skip to content

Commit 51cc5a2

Browse files
committed
feat(engine): add tests for VERSION and REVISION from package.json
1 parent 3279191 commit 51cc5a2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/engine-version.test.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { describe, it, expect } from 'vitest';
2+
import { Engine } from '../src/core/engine.js';
3+
import pkg from '../package.json';
4+
5+
describe('Engine version', () => {
6+
it('exposes VERSION and REVISION matching package version', () => {
7+
expect(typeof Engine.VERSION).toBe('string');
8+
expect(Engine.VERSION).toBe(pkg.version);
9+
expect(Engine.REVISION).toBe(Engine.VERSION);
10+
});
11+
});

0 commit comments

Comments
 (0)