-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from dstaley/threshold-and-tests
Add utility tests and minimumChangeThreshold option
- Loading branch information
Showing
10 changed files
with
6,655 additions
and
426 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`diffTable 1`] = ` | ||
"**Size Change:** +9 B (0%) | ||
**Total Size:** 4.8 kB | ||
| Filename | Size | Change | | | ||
|:--- |:---:|:---:|:---:| | ||
| \`one.js\` | 5 kB | +2.5 kB (50%) | 🆘 | | ||
| \`two.js\` | -5 kB | -2.5 kB (50%) | 🆘 | | ||
| \`four.js\` | 4.5 kB | +9 B (0%) | | | ||
<details><summary>ℹ️ <strong>View Unchanged</strong></summary> | ||
| Filename | Size | Change | | | ||
|:--- |:---:|:---:|:---:| | ||
| \`three.js\` | 300 B | 0 B | | | ||
</details> | ||
" | ||
`; | ||
|
||
exports[`diffTable 2`] = ` | ||
"| Filename | Size | Change | | | ||
|:--- |:---:|:---:|:---:| | ||
| \`one.js\` | 5 kB | +2.5 kB (50%) | 🆘 | | ||
| \`two.js\` | -5 kB | -2.5 kB (50%) | 🆘 | | ||
| \`four.js\` | 4.5 kB | +9 B (0%) | | | ||
<details><summary>ℹ️ <strong>View Unchanged</strong></summary> | ||
| Filename | Size | Change | | | ||
|:--- |:---:|:---:|:---:| | ||
| \`three.js\` | 300 B | 0 B | | | ||
</details> | ||
" | ||
`; | ||
|
||
exports[`diffTable 3`] = ` | ||
"**Size Change:** +9 B (0%) | ||
**Total Size:** 4.8 kB | ||
| Filename | Size | Change | | | ||
|:--- |:---:|:---:|:---:| | ||
| \`one.js\` | 5 kB | +2.5 kB (50%) | 🆘 | | ||
| \`two.js\` | -5 kB | -2.5 kB (50%) | 🆘 | | ||
| \`three.js\` | 300 B | 0 B | | | ||
| \`four.js\` | 4.5 kB | +9 B (0%) | | | ||
" | ||
`; | ||
|
||
exports[`diffTable 4`] = ` | ||
"**Size Change:** +9 B (0%) | ||
**Total Size:** 4.8 kB | ||
| Filename | Size | Change | | | ||
|:--- |:---:|:---:|:---:| | ||
| \`one.js\` | 5 kB | +2.5 kB (50%) | 🆘 | | ||
| \`two.js\` | -5 kB | -2.5 kB (50%) | 🆘 | | ||
| \`four.js\` | 4.5 kB | +9 B (0%) | | | ||
" | ||
`; | ||
|
||
exports[`diffTable 5`] = ` | ||
"**Size Change:** +9 B (0%) | ||
**Total Size:** 4.8 kB | ||
| Filename | Size | Change | | | ||
|:--- |:---:|:---:|:---:| | ||
| \`one.js\` | 5 kB | +2.5 kB (50%) | 🆘 | | ||
| \`two.js\` | -5 kB | -2.5 kB (50%) | 🆘 | | ||
<details><summary>ℹ️ <strong>View Unchanged</strong></summary> | ||
| Filename | Size | Change | | | ||
|:--- |:---:|:---:|:---:| | ||
| \`three.js\` | 300 B | 0 B | | | ||
| \`four.js\` | 4.5 kB | +9 B (0%) | | | ||
</details> | ||
" | ||
`; | ||
|
||
exports[`diffTable 6`] = ` | ||
"**Size Change:** 0 B | ||
**Total Size:** 300 B | ||
<details><summary>ℹ️ <strong>View Unchanged</strong></summary> | ||
| Filename | Size | Change | | | ||
|:--- |:---:|:---:|:---:| | ||
| \`three.js\` | 300 B | 0 B | | | ||
</details> | ||
" | ||
`; |
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,12 @@ | ||
module.exports = { | ||
presets: [ | ||
[ | ||
'@babel/preset-env', | ||
{ | ||
targets: { | ||
node: 'current' | ||
} | ||
} | ||
] | ||
] | ||
}; |
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,3 @@ | ||
module.exports = { | ||
testEnvironment: 'node' | ||
}; |
Oops, something went wrong.