From 537cb3e9bc865bfc278e296eca3c0c15825e8c3c Mon Sep 17 00:00:00 2001 From: Scott Schafer Date: Sat, 2 Mar 2024 13:38:11 -0700 Subject: [PATCH] feat: Use consistent colors when testing --- Cargo.toml | 1 + .../cargo_add/invalid_manifest/stderr.term.svg | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 502f30ffa3c..3de72d945c2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -229,6 +229,7 @@ features = [ ] [dev-dependencies] +annotate-snippets = { workspace = true, features = ["testing-colors"] } cargo-test-macro.workspace = true cargo-test-support.workspace = true same-file.workspace = true diff --git a/tests/testsuite/cargo_add/invalid_manifest/stderr.term.svg b/tests/testsuite/cargo_add/invalid_manifest/stderr.term.svg index 636a4075104..b3ca44189ba 100644 --- a/tests/testsuite/cargo_add/invalid_manifest/stderr.term.svg +++ b/tests/testsuite/cargo_add/invalid_manifest/stderr.term.svg @@ -19,19 +19,19 @@ - error: invalid string + error: invalid string - expected `"`, `'` + expected `"`, `'` - --> Cargo.toml:9:7 + --> Cargo.toml:9:7 - | + | - 9 | key = invalid-value + 9 | key = invalid-value - | ^ + | ^ - | + |