Skip to content

Commit daab8b2

Browse files
committed
Remove insta dep
1 parent f7e4b99 commit daab8b2

File tree

4 files changed

+3
-92
lines changed

4 files changed

+3
-92
lines changed

Cargo.lock

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

crates/ra_hir_ty/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ chalk-ir = { version = "0.18.0" }
3333
chalk-recursive = { version = "0.18.0" }
3434

3535
[dev-dependencies]
36-
insta = "0.16.0"
3736
expect = { path = "../expect" }
3837

3938
tracing = "0.1"

crates/ra_hir_ty/src/tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ use crate::{
3434
};
3535

3636
// These tests compare the inference results for all expressions in a file
37-
// against snapshots of the expected results using insta. Use cargo-insta to
38-
// update the snapshots.
37+
// against snapshots of the expected results using expect. Use
38+
// `env UPDATE_EXPECT=1 cargo test -p ra_hir_ty` to update the snapshots.
3939

4040
fn setup_tracing() -> tracing::subscriber::DefaultGuard {
4141
use tracing_subscriber::{layer::SubscriberExt, EnvFilter, Registry};

docs/dev/architecture.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,7 @@ The innermost and most elaborate boundary is `hir`. It has a much richer
170170
vocabulary of types than `ide`, but the basic testing setup is the same: we
171171
create a database, run some queries, assert result.
172172

173-
For comparisons, we use [insta](https://github.com/mitsuhiko/insta/) library for
174-
snapshot testing.
173+
For comparisons, we use the `expect` crate for snapshot testing.
175174

176175
To test various analysis corner cases and avoid forgetting about old tests, we
177176
use so-called marks. See the `marks` module in the `test_utils` crate for more.

0 commit comments

Comments
 (0)