Skip to content

Commit

Permalink
tests: extend to 1-1-2
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Alvarez <[email protected]>
  • Loading branch information
jonalvarezz committed Jun 5, 2024
1 parent 523eda7 commit b8ea849
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions packages/schemas/src/__tests__/schemas.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ const SCHEMA_VERSION_DATA: VersionData[] = [
{ version: '1-0-0', compatibleVersionGlob: '1-0-0' },
{ version: '1-1-0', compatibleVersionGlob: '1-[01]-0' },
{ version: '1-1-1', compatibleVersionGlob: '1-[01]-[01]' },
{ version: '1-1-2', compatibleVersionGlob: '1-[01]-*' },
].map(load);

class ValidationError extends Error {
Expand All @@ -79,12 +80,12 @@ class ValidationError extends Error {
const schemasWithNoExamples: string[] = [];

afterAll(() => {
// if (schemasWithNoExamples.length > 0) {
// console.warn(
// '[warning]: The following schemas have no examples:',
// schemasWithNoExamples
// );
// }
if (schemasWithNoExamples.length > 0) {
console.warn(
'[warning]: The following schemas have no examples:',
schemasWithNoExamples
);
}
});

describe.each(SCHEMA_VERSION_DATA)(
Expand Down

0 comments on commit b8ea849

Please sign in to comment.