Skip to content

Commit 550dc3d

Browse files
authored
Merge branch 'master' into wjh/wtr-hydration
2 parents d09d5c7 + 692dee1 commit 550dc3d

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
});

0 commit comments

Comments
 (0)