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 SimenB committed Aug 22, 2019
1 parent 2f2d278 commit 7ecb6ea
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 7ecb6ea

Please sign in to comment.