Update dependency pointfreeco/swift-snapshot-testing to from: "1.19.4" - #23
Open
renovate[bot] wants to merge 1 commit into
Open
Update dependency pointfreeco/swift-snapshot-testing to from: "1.19.4"#23renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
from: "1.11.0"→from: "1.19.4"Release Notes
pointfreeco/swift-snapshot-testing (pointfreeco/swift-snapshot-testing)
v1.19.4Compare Source
What's Changed
New Contributors
Full Changelog: pointfreeco/swift-snapshot-testing@1.19.3...1.19.4
v1.19.3Compare Source
What's Changed
UIHostingControllers by @Brett-Best in #1099New Contributors
Full Changelog: pointfreeco/swift-snapshot-testing@1.19.2...1.19.3
v1.19.2Compare Source
What's Changed
New Contributors
Full Changelog: pointfreeco/swift-snapshot-testing@1.19.1...1.19.2
v1.19.1Compare Source
What's Changed
UIImageattachments in Swift Testing (#1066).New Contributors
Full Changelog: pointfreeco/swift-snapshot-testing@1.19.0...1.19.1
v1.19.0Compare Source
What's Changed
record: Record?parameter (deprecatingisRecording: Bool?) (thanks @pyrtsa, #1057).New Contributors
Full Changelog: pointfreeco/swift-snapshot-testing@1.18.9...1.19.0
v1.18.9Compare Source
What's Changed
Full Changelog: pointfreeco/swift-snapshot-testing@1.18.8...1.18.9
v1.18.8Compare Source
What's Changed
New Contributors
Full Changelog: pointfreeco/swift-snapshot-testing@1.18.7...1.18.8
v1.18.7Compare Source
What's Changed
New Contributors
Full Changelog: pointfreeco/swift-snapshot-testing@1.18.6...1.18.7
v1.18.6Compare Source
What's Changed
assertInlineSnapshotfrom a non-main queue running on the main thread (#1012).Full Changelog: pointfreeco/swift-snapshot-testing@1.18.5...1.18.6
v1.18.5Compare Source
What's Changed
New Contributors
Full Changelog: pointfreeco/swift-snapshot-testing@1.18.4...1.18.5
v1.18.4Compare Source
What's Changed
New Contributors
Full Changelog: pointfreeco/swift-snapshot-testing@1.18.3...1.18.4
v1.18.3Compare Source
What's Changed
Full Changelog: pointfreeco/swift-snapshot-testing@1.18.2...1.18.3
v1.18.2Compare Source
What's Changed
New Contributors
Full Changelog: pointfreeco/swift-snapshot-testing@1.18.1...1.18.2
v1.18.1Compare Source
What's Changed
New Contributors
Full Changelog: pointfreeco/swift-snapshot-testing@1.18.0...1.18.1
v1.18.0Compare Source
What's Changed
.customDumpstrategy (vended by a newSnapshotTestingCustomDumpmodule) (#948). The existing.dumpstrategy has been soft-deprecated.assertInlineSnapshot'srecordparameter now supports the all record modes (#947).@MainActor-annotated tests (thanks @peterkovacs, #946).New Contributors
Full Changelog: pointfreeco/swift-snapshot-testing@1.17.7...1.18.0
v1.17.7Compare Source
What's Changed
New Contributors
Full Changelog: pointfreeco/swift-snapshot-testing@1.17.6...1.17.7
v1.17.6Compare Source
What's Changed
Full Changelog: pointfreeco/swift-snapshot-testing@1.17.5...1.17.6
v1.17.5Compare Source
What's Changed
New Contributors
Full Changelog: pointfreeco/swift-snapshot-testing@1.17.4...1.17.5
v1.17.4Compare Source
What's Changed
Full Changelog: pointfreeco/swift-snapshot-testing@1.17.3...1.17.4
v1.17.3Compare Source
What's Changed
failedrecord mode now properly re-records inline snapshots (#874).assertSnapshotfrom a Swift Testing test (#884).Full Changelog: pointfreeco/swift-snapshot-testing@1.17.2...1.17.3
v1.17.2Compare Source
What's Changed
Full Changelog: pointfreeco/swift-snapshot-testing@1.17.1...1.17.2
v1.17.1Compare Source
What's Changed
Full Changelog: pointfreeco/swift-snapshot-testing@1.17.0...1.17.1
v1.17.0Compare Source
What's Changed
See the migration guide for more information.
Added: Beta support for Swift Testing, and other improvements. by @mbrandonw in #867
Added: A
Recordmode has been introduced that can be configured with one of four states (.all,.failed,.missing,.never) instead of just theisRecordingboolean (thanks @NachoSoto, #768).Added:
diffToolcan now be configured with a closure that is passed the old and new diff paths in order to output a custom format (thanks @js, #840).Added: Allow
isRecordingdefault value to be configured usingSNAPSHOT_TESTING_RECORDenv var (thanks @tgrapperon, #862).This can be configured with any of the record modes introduced in this version, e.g.
SNAPSHOT_TESTING_RECORD=failed.Infrastructure: Add
.editorconfigfor consistent code formatting (thanks @Matejkob, #864).New Contributors
Full Changelog: pointfreeco/swift-snapshot-testing@1.16.2...1.17.0
v1.16.2Compare Source
What's Changed
Full Changelog: pointfreeco/swift-snapshot-testing@1.16.1...1.16.2
v1.16.1Compare Source
What's Changed
ViewImageConfigsendable (thanks @Mika5652, #850).New Contributors
Full Changelog: pointfreeco/swift-snapshot-testing@1.16.0...1.16.1
v1.16.0Compare Source
What's Changed
New Contributors
Full Changelog: pointfreeco/swift-snapshot-testing@1.15.4...1.16.0
v1.15.4Compare Source
What's Changed
Full Changelog: pointfreeco/swift-snapshot-testing@1.15.3...1.15.4
v1.15.3Compare Source
What's Changed
Full Changelog: pointfreeco/swift-snapshot-testing@1.15.2...1.15.3
v1.15.2Compare Source
What's Changed
WKWebViewin Xcode 14 and Xcode 15 (thanks @teameh, #692).Full Changelog: pointfreeco/swift-snapshot-testing@1.15.1...1.15.2
v1.15.1Compare Source
What's Changed
Full Changelog: pointfreeco/swift-snapshot-testing@1.15.0...1.15.1
v1.15.0Compare Source
What's Changed
assertInlineSnapshotnow hasrecordmode (#809).assertInlineSnapshot's failure difference now reads more correctly as the patch that would be applied were record mode to be on (#809).Full Changelog: pointfreeco/swift-snapshot-testing@1.14.2...1.15.0
v1.14.2Compare Source
What's Changed
assertCustomInline()no longer leaves empty parens hanging around when expanded (#788).swift-syntaxdependency has widened to support 508.0.1..<510.0.0, allowing the library to be depended on even when another package depends on 508.0.1 (#795).Full Changelog: pointfreeco/swift-snapshot-testing@1.14.1...1.14.2
v1.14.1Compare Source
What's Changed
Full Changelog: pointfreeco/swift-snapshot-testing@1.14.0...1.14.1
v1.14.0Compare Source
What's Changed
New Contributors
Full Changelog: pointfreeco/swift-snapshot-testing@1.13.0...1.14.0
v1.13.0Compare Source
What's Changed
Added: Inline Snapshot Testing (#764). This allows your text-based snapshots to live right in the test source code, rather than in an external file:
While the library has had experimental support for this feature since 1.5.0 thanks to @rjchatfield (#199), we've finally put the finishing touches to it:
Inline snapshot testing is available in a separate
InlineSnapshotTestingmodule. To use inline snapshot testing, add a dependency on this module and update your existing imports:The feature has been rewritten to use SwiftSyntax. While a heavyweight dependency, it is a more reasonable tool for generating Swift code than string substitution, and will be an increasingly common dependency as the de facto tool for writing Swift macros.
The main
SnapshotTestingmodule does not depend on SwiftSyntax, so existing snapshot tests will not incur cost of compiling SwiftSyntax.The API now follows the same structure as
assertSnapshot, except it uses a trailing closure to capture the inline snapshot. This makes it easy to update an existing snapshot test to use inline snapshots:After this assertion runs, the test source code is updated in place:
These trailing closures are easy to select in Xcode in order to delete and re-record a snapshot: simply double-click one of the braces to highlight the closure, delete, and run the test.
Inline snapshotting's
assertInlineSnapshottesting tool is fully customizable so that you can build your own testing helpers on top of it without your users even knowing they are using snapshot testing. In fact, we do this to create a testing tool that helps us test the Swift code that powers Point-Free. It's calledassertRequest, and it allows you to simultaneously assert the request being made to the server (including URL, query parameters, headers, POST body) as well as the response from the server (including status code and headers).For example, to test that when a request is made for a user to join a team subscription, we can write the following:
And when we first run the test it will automatically expand:
This shows that the response redirects the use back to their account page and shows them the flash message that they now have full access to Point-Free. This makes writing complex and nuanced tests incredibly easy, and so there is no reason to not write lots of tests for all the subtle edge cases of your application's logic.
Added: DocC documentation (#765). The
SnapshotTestingandInlineSnapshotTestingare fully documented using DocC.Infrastructure: swift-format support (#765). The library is now auto-formatted using swift-format.
Full Changelog: pointfreeco/swift-snapshot-testing@1.12.0...0.13.0
v1.12.0Compare Source
What's Changed
assertSnapshot(of:)is now the default interface for snapshot assertions (#762).assertSnapshot(matching:)will remain in 1.x as a soft-deprecated alias.New Contributors
Full Changelog: pointfreeco/swift-snapshot-testing@1.11.1...1.12.0
v1.11.1Compare Source
What's Changed
Full Changelog: pointfreeco/swift-snapshot-testing@1.11.0...1.11.1
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.