Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

fix(harper.js): disable slow test

Elijah Potterd13aab4df7bc
diff --git a/packages/harper.js/src/Linter.test.ts b/packages/harper.js/src/Linter.test.ts
index a880a85b0..b041d1a27 100644
--- a/packages/harper.js/src/Linter.test.ts
+++ b/packages/harper.js/src/Linter.test.ts
@@ -448,17 +448,18 @@ for (const [linterName, Linter] of Object.entries(linters)) {
}, 120000);
}
-test('LocalLinters will lint many times with fresh instances', async () => {
- for (let i = 0; i < 300; i++) {
- const linter = new LocalLinter({ binary });
-
- const text = 'This is a grammatically correct sentence.';
- const lints = await linter.organizedLints(text);
- expect(lints).not.toBeNull();
-
- await linter.dispose();
- }
-}, 120000);
+// Disabled because it significantly slows down CI
+// test('LocalLinters will lint many times with fresh instances', async () => {
+// for (let i = 0; i < 300; i++) {
+// const linter = new LocalLinter({ binary });
+//
+// const text = 'This is a grammatically correct sentence.';
+// const lints = await linter.organizedLints(text);
+// expect(lints).not.toBeNull();
+//
+// await linter.dispose();
+// }
+// }, 120000);
test('Linters have the same config format', async () => {
const configs = [];