Skip to content

Commit

Permalink
Update coverage thresholds / Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
matz3 committed Mar 24, 2020
1 parent c258bfd commit c8aab6d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions lib/projectPreprocessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ class ProjectPreprocessor {

const validationResults = await Promise.all(
configs.map(async (config, documentIndex) => {
// Catch validation errors to ensure proper order of rejections within Promise.all
try {
await validate({
config,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ test.before((t) => {
test.after.always((t) => {
t.context.ajvCoverage.createReport("html", {dir: "coverage/ajv-project-module"});
const thresholds = {
statements: 25,
branches: 20,
statements: 65,
branches: 55,
functions: 100,
lines: 25
lines: 65
};
t.context.ajvCoverage.verify(thresholds);
});
Expand Down
6 changes: 3 additions & 3 deletions test/lib/validation/schema/ui5.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ test.before((t) => {
test.after.always((t) => {
t.context.ajvCoverage.createReport("html", {dir: "coverage/ajv-ui5"});
const thresholds = {
statements: 58,
branches: 50,
statements: 95,
branches: 80,
functions: 100,
lines: 58
lines: 95
};
t.context.ajvCoverage.verify(thresholds);
});
Expand Down

0 comments on commit c8aab6d

Please sign in to comment.