Skip to content

Commit

Permalink
Tidying up some deps and addressing PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
skycoop committed Jul 10, 2023
1 parent 467bb49 commit 4b32798
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 51 deletions.
15 changes: 12 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 188,6 @@ windows-sys = { version = "0.48.0", features = ["Win32_Media"] }

# TODO: Remove before merging
[patch.crates-io]
quick-junit = { path = "/Users/cooper/third-party/nextest/quick-junit" }
deno_core = { path = "../deno_core/core" }

# NB: the `bench` and `release` profiles must remain EXACTLY the same.
Expand Down
50 changes: 8 additions & 42 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 27,8 @@ harness = false
path = "./bench/lsp_bench_standalone.rs"

[build-dependencies]
deno_runtime = { workspace = true, features = [
"snapshot_from_snapshot",
"include_js_files_for_snapshotting",
] }
deno_core = { workspace = true, features = [
"include_js_files_for_snapshotting",
] }
deno_runtime = { workspace = true, features = ["snapshot_from_snapshot", "include_js_files_for_snapshotting"] }
deno_core = { workspace = true, features = ["include_js_files_for_snapshotting"] }
lazy-regex.workspace = true
serde.workspace = true
serde_json.workspace = true
Expand All @@ -45,33 40,15 @@ winapi.workspace = true
winres.workspace = true

[dependencies]
deno_ast = { workspace = true, features = [
"bundler",
"cjs",
"codegen",
"dep_graph",
"module_specifier",
"proposal",
"react",
"sourcemap",
"transforms",
"typescript",
"view",
"visit",
] }
deno_core = { workspace = true, features = [
"include_js_files_for_snapshotting",
] }
deno_ast = { workspace = true, features = ["bundler", "cjs", "codegen", "dep_graph", "module_specifier", "proposal", "react", "sourcemap", "transforms", "typescript", "view", "visit"] }
deno_core = { workspace = true, features = ["include_js_files_for_snapshotting"] }
deno_doc = "=0.63.1"
deno_emit = "=0.24.0"
deno_graph = "=0.49.0"
deno_lint = { version = "=0.49.0", features = ["docs"] }
deno_lockfile.workspace = true
deno_npm.workspace = true
deno_runtime = { workspace = true, features = [
"dont_create_runtime_snapshot",
"include_js_files_for_snapshotting",
] }
deno_runtime = { workspace = true, features = ["dont_create_runtime_snapshot", "include_js_files_for_snapshotting"] }
deno_semver.workspace = true
deno_task_shell = "=0.12.0"
eszip = "=0.45.0"
Expand Down Expand Up @@ -114,13 91,11 @@ once_cell.workspace = true
os_pipe.workspace = true
percent-encoding.workspace = true
pin-project.workspace = true
quick-junit = "^0.3.2"
quick-junit = "^0.3.3"
rand = { workspace = true, features = ["small_rng"] }
regex.workspace = true
ring.workspace = true
rustyline = { version = "=10.0.0", default-features = false, features = [
"custom-bindings",
] }
rustyline = { version = "=10.0.0", default-features = false, features = ["custom-bindings"] }
rustyline-derive = "=0.7.0"
serde.workspace = true
serde_repr.workspace = true
Expand All @@ -142,16 117,7 @@ zstd.workspace = true
[target.'cfg(windows)'.dependencies]
fwdansi.workspace = true
junction = "=0.2.0"
winapi = { workspace = true, features = [
"knownfolders",
"mswsock",
"objbase",
"shlobj",
"tlhelp32",
"winbase",
"winerror",
"winsock2",
] }
winapi = { workspace = true, features = ["knownfolders", "mswsock", "objbase", "shlobj", "tlhelp32", "winbase", "winerror", "winsock2"] }

[target.'cfg(unix)'.dependencies]
nix.workspace = true
Expand Down
9 changes: 4 additions & 5 deletions cli/tools/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 63,6 @@ use std::fmt::Write as _;
use std::io::Read;
use std::io::Write;
use std::num::NonZeroUsize;
use std::ops::Index;
use std::path::Path;
use std::sync::atomic::AtomicBool;
use std::sync::atomic::AtomicUsize;
Expand Down Expand Up @@ -423,7 422,7 @@ fn get_test_reporter(options: &TestSpecifiersOptions) -> Box<dyn TestReporter> {
options.concurrent_jobs.get() > 1,
options.log_level != Some(Level::Error),
)),
Box::new(JsonTestReporter::new()),
Box::new(JunitTestReporter::new()),
]));
}

Expand Down Expand Up @@ -1049,12 1048,12 @@ impl TestReporter for PrettyTestReporter {
}
}

struct JsonTestReporter {
struct JunitTestReporter {
// Stores TestCases (i.e. Tests) by the Test ID
cases: IndexMap<usize, quick_junit::TestCase>,
}

impl JsonTestReporter {
impl JunitTestReporter {
fn new() -> Self {
Self {
cases: IndexMap::new(),
Expand Down Expand Up @@ -1083,7 1082,7 @@ impl JsonTestReporter {
}
}

impl TestReporter for JsonTestReporter {
impl TestReporter for JunitTestReporter {
fn report_register(&mut self, description: &TestDescription) {
self.cases.insert(
description.id,
Expand Down

0 comments on commit 4b32798

Please sign in to comment.