Skip to content

Commit d165a01

Browse files
committed
update validate test
1 parent 8099f8f commit d165a01

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

packages/jest-validate/src/__tests__/validate.test.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,20 @@ test('omits null and undefined config values', () => {
7373
});
7474
});
7575

76+
test('recursively omits null and undefined config values', () => {
77+
const config = {
78+
coverageThreshold: {
79+
global: null,
80+
},
81+
};
82+
expect(
83+
validate(config, {exampleConfig: validConfig, recursive: true}),
84+
).toEqual({
85+
hasDeprecationWarnings: false,
86+
isValid: true,
87+
});
88+
});
89+
7690
test.each([
7791
[function() {}, function() {}],
7892
[async function() {}, function() {}],

0 commit comments

Comments
 (0)