Skip to content

Commit

Permalink
update validate test
Browse files Browse the repository at this point in the history
  • Loading branch information
thymikee authored and cpojer committed May 2, 2020
1 parent b02d3d6 commit c4cd808
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/jest-validate/src/__tests__/validate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,20 @@ test('omits null and undefined config values', () => {
});
});

test('recursively omits null and undefined config values', () => {
const config = {
coverageThreshold: {
global: null,
},
};
expect(
validate(config, {exampleConfig: validConfig, recursive: true}),
).toEqual({
hasDeprecationWarnings: false,
isValid: true,
});
});

test.each([
[function () {}, function () {}],
[async function () {}, function () {}],
Expand Down

0 comments on commit c4cd808

Please sign in to comment.