Skip to content

Commit

Permalink
fix: add ts-ignore for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kbader-godaddy committed Dec 20, 2024
1 parent f7e45d0 commit b52cca2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/gasket-utils/test/config.test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable jest/no-conditional-expect */
const { applyConfigOverrides } = require('../lib/config');

describe('applyConfigOverrides', () => {
Expand Down Expand Up @@ -200,6 +201,7 @@ describe('applyConfigOverrides', () => {
if (options && typeof options.isMergeableObject === 'function') {
expect(options.isMergeableObject({})).toBe(true);
expect(options.isMergeableObject([])).toBe(false);
// @ts-ignore
expect(options.isMergeableObject(null)).toBe(false);
expect(options.isMergeableObject(() => {})).toBe(false);
}
Expand All @@ -216,7 +218,7 @@ describe('applyConfigOverrides', () => {

results = applyConfigOverrides(mockConfig, mockContext);

// Restore the original deepmerge.all implementation
// @ts-ignore
mockDeepmerge.all.mockRestore();

expect(results).toEqual({
Expand Down

0 comments on commit b52cca2

Please sign in to comment.