Skip to content

Commit

Permalink
test: add insta snapshots to borsh/tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dj8yf0μl committed Jun 22, 2023
1 parent d99fe3a commit e6a5507
Show file tree
Hide file tree
Showing 160 changed files with 26,183 additions and 23 deletions.
1 change: 1 addition & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
run: rustc --version
- name: Run tests
run: |
export INSTA_UPDATE=no
pushd borsh
cargo test --no-run
cargo test
Expand Down
2 changes: 2 additions & 0 deletions borsh/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ homepage = "https://borsh.io"
description = """
Binary Object Representation Serializer for Hashing
"""
exclude = ["tests/snapshots"]

[lib]
name = "borsh"
Expand All @@ -32,6 +33,7 @@ bytes = "1"
bson = "2"
# Enable the "bytes" and "bson" features in integ tests: https://github.com/rust-lang/cargo/issues/2911#issuecomment-1464060655
borsh = { path = ".", default_features = false, features = ["bytes", "bson"] }
insta = "1.29.0"

[features]
default = ["std"]
Expand Down
Loading

0 comments on commit e6a5507

Please sign in to comment.