Skip to content

Commit

Permalink
fix: broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KishenKumarrrrr committed Feb 8, 2024
1 parent 25dc1d0 commit ca6c4ac
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions frontend/config-overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,17 @@ module.exports.jest = (config) => {
'^styles/?(.*)': '<rootDir>/src/styles/$1',
'^@shared/?(.*)': '<rootDir>/../shared/src/$1',
}
config.testPathIgnorePatterns.push(...[
'frontend/src/components/dashboard/create/email/tests/EmailRecipients.test.tsx',
'frontend/src/components/dashboard/create/sms/tests/SMSRecipients.test.tsx',
'frontend/src/components/dashboard/create/telegram/tests/TelegramRecipients.test.tsx',
'frontend/src/components/dashboard/tests/integration/email.test.tsx',
'frontend/src/components/dashboard/tests/integration/sms.test.tsx',
'frontend/src/components/dashboard/tests/integration/telegram.test.tsx',
])

if (!config.testPathIgnorePatterns) {
config.testPathIgnorePatterns = [
'frontend/src/components/dashboard/create/email/tests/EmailRecipients.test.tsx',
'frontend/src/components/dashboard/create/sms/tests/SMSRecipients.test.tsx',
'frontend/src/components/dashboard/create/telegram/tests/TelegramRecipients.test.tsx',
'frontend/src/components/dashboard/tests/integration/email.test.tsx',
'frontend/src/components/dashboard/tests/integration/sms.test.tsx',
'frontend/src/components/dashboard/tests/integration/telegram.test.tsx',
];
}

const moduleNameMapper = { ...config.moduleNameMapper, ...aliasMap }
return {
...config,
Expand Down

0 comments on commit ca6c4ac

Please sign in to comment.