-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
85808f0
commit 5a24472
Showing
4 changed files
with
79 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
tags: [v0.10.0, patch, major] | ||
sidebar_position: 5 | ||
date: 2022-10-18 | ||
authors: | ||
- name: Jesse Mitchell | ||
title: Developer of Pineapple | ||
url: https://github.com/TotalTechGeek | ||
image_url: https://github.com/TotalTechGeek.png | ||
--- | ||
|
||
# Improving Snapshots & User Output (v0.10.0) | ||
|
||
Hey everyone! | ||
|
||
This release is focused on providing some additional small quality of life improvements to the tool. | ||
|
||
## Better Snapshots | ||
|
||
Prior to this release, all snapshots were captured in a global `pineapple-snapshot`, and while this worked, I don't believe it made reviewing particularly effective. | ||
|
||
When snapshots are captured, it will now save in close proximity to your file that you're testing, appending a `.psnap` to the file name. | ||
|
||
So if you were testing a `./src/math.js` file, the snapshot will be persisted to `./src/math.js.psnap` | ||
|
||
## More Hooks | ||
|
||
This version introduces a few new hooks for test lifecycle management. | ||
|
||
You may now use: | ||
|
||
- `@beforeGlobal` | ||
- `@beforeEachGlobal` | ||
- `@afterGlobal` | ||
- `@afterEachGlobal` | ||
|
||
These hooks were introduced to make it easier to pair Pineapple with measurement frameworks, where you might need to reset certain fields. | ||
|
||
Right now, the functions invoked do not receive any arguments, but this will likely be addressed in a future version. | ||
|
||
## Better Output | ||
|
||
In certain cases, important error feedback was suppressed by the framework, thus making it difficult to rectify issues identified by the test. This feedback should no longer be suppressed. |
This file contains 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