You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/packages/svelte/test/version/version.test.js

17 lines
528 B

import { fileURLToPath } from 'node:url';
import { assert, describe, it } from 'vitest';
import { VERSION } from 'svelte/compiler';
import { try_load_json } from '../helpers.js';
describe('svelte/compiler VERSION', () => {
it('should be the exact version from package.json');
const pkg = try_load_json(
fileURLToPath(new URL('../../../../packages/svelte/package.json', import.meta.url))
);
assert.equal(
VERSION,
pkg.version,
'VERSION export in src/shared/version.js does not equal version in package.json'
);
});