Skip to content

Commit 71c74be

Browse files
authored
Revert "test(editor): add end-to-end tests for linter output" (#9982)
Reverts #9979
1 parent b4f3d00 commit 71c74be

File tree

8 files changed

+0
-178
lines changed

8 files changed

+0
-178
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/oxc_language_server/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,3 @@ serde = { workspace = true, features = ["derive"] }
4242
serde_json = { workspace = true }
4343
tokio = { workspace = true, features = ["rt-multi-thread", "io-std", "macros"] }
4444
tower-lsp = { workspace = true, features = ["proposed"] }
45-
46-
[dev-dependencies]
47-
insta = { workspace = true }

crates/oxc_language_server/fixtures/linter/hello_world.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

crates/oxc_language_server/src/linter/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ pub mod error_with_position;
55
mod isolated_lint_handler;
66
pub mod server_linter;
77

8-
#[cfg(test)]
9-
mod tester;
10-
118
#[expect(clippy::cast_possible_truncation)]
129
pub fn offset_to_position(offset: usize, source_text: &str) -> Position {
1310
// TODO(perf): share a single instance of `Rope`

crates/oxc_language_server/src/linter/server_linter.rs

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -28,30 +28,3 @@ impl ServerLinter {
2828
.run_single(&uri.to_file_path().unwrap(), content)
2929
}
3030
}
31-
32-
#[cfg(test)]
33-
mod test {
34-
use super::*;
35-
use crate::linter::tester::Tester;
36-
use oxc_linter::{LintFilter, LintFilterKind};
37-
38-
#[test]
39-
fn test_no_errors() {
40-
Tester::new()
41-
.with_snapshot_suffix("no_errors")
42-
.test_and_snapshot_single_file("fixtures/linter/hello_world.js");
43-
}
44-
45-
#[test]
46-
fn test_no_console() {
47-
let config_store = ConfigStoreBuilder::default()
48-
.with_filter(LintFilter::deny(LintFilterKind::parse("no-console".into()).unwrap()))
49-
.build()
50-
.unwrap();
51-
let linter = Linter::new(LintOptions::default(), config_store).with_fix(FixKind::SafeFix);
52-
53-
Tester::new_with_linter(linter)
54-
.with_snapshot_suffix("deny_no_console")
55-
.test_and_snapshot_single_file("fixtures/linter/hello_world.js");
56-
}
57-
}

crates/oxc_language_server/src/linter/snapshots/fixtures_linter_hello_world.js@deny_no_console.snap

Lines changed: 0 additions & 13 deletions
This file was deleted.

crates/oxc_language_server/src/linter/snapshots/fixtures_linter_hello_world.js@no_errors.snap

Lines changed: 0 additions & 4 deletions
This file was deleted.

crates/oxc_language_server/src/linter/tester.rs

Lines changed: 0 additions & 126 deletions
This file was deleted.

0 commit comments

Comments
 (0)