Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion apps/oxlint/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ mod js_plugins;
mod lint;
mod output_formatter;
mod result;
mod tester;
mod walk;

#[cfg(test)]
mod tester;

pub mod cli {
pub use crate::{command::*, lint::LintRunner, result::CliRunResult};
}
Expand Down
6 changes: 0 additions & 6 deletions apps/oxlint/src/tester.rs
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
#[cfg(test)]
use std::{env, path::PathBuf};

#[cfg(test)]
use cow_utils::CowUtils;
#[cfg(test)]
use lazy_regex::Regex;

#[cfg(test)]
use crate::cli::{LintRunner, lint_command};

#[cfg(test)]
pub struct Tester {
cwd: PathBuf,
}

#[cfg(test)]
impl Tester {
pub fn new() -> Self {
let cwd = env::current_dir().unwrap();
Expand Down
Loading