Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
paglobal authored Oct 20, 2023
2 parents fd6ef20 + 79e8593 commit 9cf10be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/lit-analyzer/src/test/helpers/ts-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import { setTypescriptModule } from "../../lib/analyze/ts-module.js";

type TestFunction = (title: string, implementation: Implementation) => void;

const TS_MODULES_ALL = ["current", "4.8", "5.0", "5.1"] as const;
const TS_MODULES_ALL = ["current", "4.8", "5.0", "5.1", "5.2"] as const;

type TsModuleKind = typeof TS_MODULES_ALL[number];

const TS_MODULES_DEFAULT: TsModuleKind[] = ["current", "4.8", "5.0", "5.1"];
const TS_MODULES_DEFAULT: TsModuleKind[] = ["current", "4.8", "5.0", "5.1", "5.2"];

/**
* Returns the name of the module to require for a specific ts module kind
Expand All @@ -21,6 +21,7 @@ function getTsModuleNameWithKind(kind: TsModuleKind | undefined): string {
case "4.8":
case "5.0":
case "5.1":
case "5.2":
return `typescript-${kind}`;
case "current":
case undefined:
Expand Down

0 comments on commit 9cf10be

Please sign in to comment.