fix: skip diagnostics test on windows (#1602)

* fix: skip diagnostics test on windows

* fix: again
This commit is contained in:
Myriad-Dreamin 2025-03-30 19:06:56 +08:00 committed by GitHub
parent 9376b89b08
commit 96e0f0dfe6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,6 +26,13 @@ export async function getTests(ctx: Context) {
console.log("Start all tests on ", workspaceUri.fsPath);
suite.addTest("diagnostics works well", async () => {
// Skip this test on Windows due to unstable
// todo: restore this test on Windows
if (process.platform === "win32") {
console.warn("WARN: Skipping diagnostics test on Windows");
return;
}
const mainUrl = vscode.Uri.joinPath(workspaceUri, "diagnostics.typ");
const largeDoc0 = "#for i in range(100) { lorem(i) };";
@ -66,6 +73,12 @@ export async function getTests(ctx: Context) {
});
suite.addTest("typst0.13 diag hints", async () => {
// todo: restore this test on Windows
if (process.platform === "win32") {
console.warn("WARN: Skipping diagnostics test on Windows");
return;
}
const mainUrl = vscode.Uri.joinPath(workspaceUri, "typst013.typ");
const editor = await ctx.openDocument(mainUrl);