File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2025, Salesforce, Inc.
3+ * All rights reserved.
4+ * SPDX-License-Identifier: MIT
5+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
6+ */
7+ import { version } from 'typescript' ;
8+ import { expect , test } from 'vitest' ;
9+
10+ // This is more of a repo configuration test than a test of the `lwc` package,
11+ // but we don't really have a place to catch accidental foot-gunnery.
12+
13+ test ( 'TypeScript version should not change' , ( ) => {
14+ // Because we are a library, bumping the version of TypeScript is a
15+ // potentially breaking change. Code that may compile using our version may
16+ // result in type errors in different versions (e.g. using new syntax).
17+ expect ( version , 'TypeScript version should only change for major releases of LWC' ) . toBe (
18+ '5.8.2'
19+ ) ;
20+ } ) ;
You can’t perform that action at this time.
0 commit comments