Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions packages/lwc/__tests__/typescript.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright (c) 2025, Salesforce, Inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
import { version } from 'typescript';
import { expect, test } from 'vitest';

// This is more of a repo configuration test than a test of the `lwc` package,
// but we don't really have a place to catch accidental foot-gunnery.

test('TypeScript version should not change', () => {
// Because we are a library, bumping the version of TypeScript is a
// potentially breaking change. Code that may compile using our version may
// result in type errors in different versions (e.g. using new syntax).
expect(version, 'TypeScript version should only change for major releases of LWC').toBe(
'5.8.2'
);
});