mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-15 06:19:24 +02:00
spelling: threshold
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
2
.github/codecov.yaml
vendored
2
.github/codecov.yaml
vendored
@@ -14,5 +14,5 @@ coverage:
|
|||||||
off
|
off
|
||||||
# Turing off for now as code coverage isn't stable and causes unnecessary build failures.
|
# Turing off for now as code coverage isn't stable and causes unnecessary build failures.
|
||||||
# default:
|
# default:
|
||||||
# threshould: 2%
|
# threshold: 2%
|
||||||
patch: off
|
patch: off
|
||||||
|
@@ -126,7 +126,7 @@ export const verifyScreenshot = (name: string): void => {
|
|||||||
cy.eyesClose();
|
cy.eyesClose();
|
||||||
} else if (useArgos) {
|
} else if (useArgos) {
|
||||||
cy.argosScreenshot(name, {
|
cy.argosScreenshot(name, {
|
||||||
threshould: 0.01,
|
threshold: 0.01,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
cy.matchImageSnapshot(name);
|
cy.matchImageSnapshot(name);
|
||||||
|
@@ -30,8 +30,8 @@ import { addMatchImageSnapshotCommand } from 'cypress-image-snapshot/command';
|
|||||||
// SSIM actually does not catch minute changes in the image, so it is not as accurate as pixelmatch.
|
// SSIM actually does not catch minute changes in the image, so it is not as accurate as pixelmatch.
|
||||||
// addMatchImageSnapshotCommand({
|
// addMatchImageSnapshotCommand({
|
||||||
// comparisonMethod: 'ssim',
|
// comparisonMethod: 'ssim',
|
||||||
// failureThreshould: 0.01,
|
// failureThreshold: 0.01,
|
||||||
// failureThreshouldType: 'percent',
|
// failureThresholdType: 'percent',
|
||||||
// customDiffConfig: {
|
// customDiffConfig: {
|
||||||
// ssim: 'fast',
|
// ssim: 'fast',
|
||||||
// },
|
// },
|
||||||
|
@@ -1699,7 +1699,7 @@ config:
|
|||||||
|
|
||||||
> #### IMPORTANT:
|
> #### IMPORTANT:
|
||||||
>
|
>
|
||||||
> Mermaid supports the theme variables to override the default values for **up to 8 branches**, i.e., you can set the color/styling of up to 8 branches using theme variables. After this threshould of 8 branches, the theme variables are reused in the cyclic manner, i.e. the 9th branch will use the color/styling of the 1st branch, or the branch at index position '8' will use the color/styling of the branch at index position '0'.
|
> Mermaid supports the theme variables to override the default values for **up to 8 branches**, i.e., you can set the color/styling of up to 8 branches using theme variables. After this threshold of 8 branches, the theme variables are reused in the cyclic manner, i.e. the 9th branch will use the color/styling of the 1st branch, or the branch at index position '8' will use the color/styling of the branch at index position '0'.
|
||||||
> _More on this in the next section. See examples on **Customizing branch label colors** below_
|
> _More on this in the next section. See examples on **Customizing branch label colors** below_
|
||||||
|
|
||||||
### Customizing branch colors
|
### Customizing branch colors
|
||||||
|
@@ -987,7 +987,7 @@ config:
|
|||||||
|
|
||||||
> #### IMPORTANT:
|
> #### IMPORTANT:
|
||||||
>
|
>
|
||||||
> Mermaid supports the theme variables to override the default values for **up to 8 branches**, i.e., you can set the color/styling of up to 8 branches using theme variables. After this threshould of 8 branches, the theme variables are reused in the cyclic manner, i.e. the 9th branch will use the color/styling of the 1st branch, or the branch at index position '8' will use the color/styling of the branch at index position '0'.
|
> Mermaid supports the theme variables to override the default values for **up to 8 branches**, i.e., you can set the color/styling of up to 8 branches using theme variables. After this threshold of 8 branches, the theme variables are reused in the cyclic manner, i.e. the 9th branch will use the color/styling of the 1st branch, or the branch at index position '8' will use the color/styling of the branch at index position '0'.
|
||||||
> _More on this in the next section. See examples on **Customizing branch label colors** below_
|
> _More on this in the next section. See examples on **Customizing branch label colors** below_
|
||||||
|
|
||||||
### Customizing branch colors
|
### Customizing branch colors
|
||||||
|
@@ -100,7 +100,7 @@ function compareTimings(): void {
|
|||||||
const significantChanges = timingChanges.filter((t) => t.change > 5000 && t.changePercent >= 0.2);
|
const significantChanges = timingChanges.filter((t) => t.change > 5000 && t.changePercent >= 0.2);
|
||||||
|
|
||||||
if (significantChanges.length === 0) {
|
if (significantChanges.length === 0) {
|
||||||
log('No significant timing changes detected (threshould: 5s and 20%)');
|
log('No significant timing changes detected (threshold: 5s and 20%)');
|
||||||
return cleanupFiles({ keepNew: false, reason: 'No significant timing changes' });
|
return cleanupFiles({ keepNew: false, reason: 'No significant timing changes' });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user