diff --git a/__mocks__/brojs-cli-mock.ts b/__mocks__/brojs-cli-mock.ts index c294243..eedac3a 100644 --- a/__mocks__/brojs-cli-mock.ts +++ b/__mocks__/brojs-cli-mock.ts @@ -3,7 +3,9 @@ import { jest } from '@jest/globals'; jest.mock('@brojs/cli', () => ({ getConfigValue: jest.fn(() => '/api'), getFeatures: jest.fn(() => ({ - ['order-view-status-polling']: { value: '3000' } + ['order-view-status-polling']: { value: '3000' }, + ['car-img-upload']: { value: 'true' }, + ['order-cost']: { value: '1000' }, })), getNavigationValue: jest.fn((navKey: string) => { switch (navKey) { diff --git a/jest-preset-it/jest-preset.ts b/jest-preset-it/jest-preset.ts index 67a91bc..cd088fc 100644 --- a/jest-preset-it/jest-preset.ts +++ b/jest-preset-it/jest-preset.ts @@ -5,7 +5,7 @@ module.exports = { }, coverageProvider: 'v8', coverageDirectory: 'coverage', - collectCoverageFrom: ['**/src/**/*.{ts,tsx}', '!**/src/app.tsx'], + collectCoverageFrom: ['**/src/**/*.{ts,tsx}', '!**/src/app.tsx', '!**/src/**/types.ts', '!**/src/**/*.d.ts', '!**/src/models/**/*'], collectCoverage: true, clearMocks: true, moduleNameMapper: { diff --git a/src/pages/__tests__/__snapshots__/masters.test.tsx.snap b/src/pages/__tests__/__snapshots__/masters.test.tsx.snap index fc26ae6..95d72e4 100644 --- a/src/pages/__tests__/__snapshots__/masters.test.tsx.snap +++ b/src/pages/__tests__/__snapshots__/masters.test.tsx.snap @@ -3,46 +3,42 @@ exports[`Master Page should display master list and show details when master button is clicked 1`] = `
- 23.02.2025 + 12.03.2025