From 044ddedc404835c31b36fa49765ff3d07d6181a7 Mon Sep 17 00:00:00 2001 From: Mattia Manzati Date: Sat, 11 Jul 2026 08:55:11 +0200 Subject: [PATCH] Speed up diagnostics tests --- .changeset/fast-diagnostics-tests.md | 5 +++++ packages/language-service/test/diagnostics.test.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/fast-diagnostics-tests.md diff --git a/.changeset/fast-diagnostics-tests.md b/.changeset/fast-diagnostics-tests.md new file mode 100644 index 00000000..009c35ff --- /dev/null +++ b/.changeset/fast-diagnostics-tests.md @@ -0,0 +1,5 @@ +--- +"@effect/language-service": patch +--- + +Enable `skipLibCheck` in the diagnostics test harness to reduce test runtime and memory usage. diff --git a/packages/language-service/test/diagnostics.test.ts b/packages/language-service/test/diagnostics.test.ts index de079eba..8f85908c 100644 --- a/packages/language-service/test/diagnostics.test.ts +++ b/packages/language-service/test/diagnostics.test.ts @@ -27,6 +27,7 @@ const getExamplesDiagnosticsDir = () => getExamplesSubdir("diagnostics") function compilerOptionsFromSourceComment(sourceText: string): ts.CompilerOptions { return { + skipLibCheck: true, ...(sourceText.includes("// @strict") ? { strict: true } : {}) } }