From 3d5f54749589f369748ece3f0da3a7850647cb22 Mon Sep 17 00:00:00 2001 From: George Usynin <103181646+heorhi-deriv@users.noreply.github.com> Date: Thu, 27 Jun 2024 03:24:01 +0300 Subject: [PATCH] fix: :ambulance: fix test time execution (#15806) --- jest.config.base.js | 2 +- packages/cashier-v2/jest.config.ts | 1 - packages/components/jest.config.js | 1 - packages/p2p-v2/jest.config.js | 1 - packages/p2p/jest.config.js | 1 - packages/trader/jest.config.js | 1 - 6 files changed, 1 insertion(+), 6 deletions(-) diff --git a/jest.config.base.js b/jest.config.base.js index ad0a19be28cf..c76634f71d8f 100644 --- a/jest.config.base.js +++ b/jest.config.base.js @@ -16,7 +16,7 @@ module.exports = { testRegex: '(/__tests__/.*|(\\.)(test|spec))\\.(js|jsx|tsx|ts)?$', // This is needed to transform es modules imported from node_modules of the target component. transformIgnorePatterns: [ - '/node_modules/(?!(@enykeev/react-virtualized|@simplewebauthn/browser|@deriv/quill-design|@deriv/quill-icons|@deriv-com/ui|@deriv-com/translations)).+\\.js$', + '/node_modules/(?!(@enykeev/react-virtualized|@simplewebauthn/browser|@deriv-com/ui|@deriv-com/quill-ui|@sendbird/chat)).+\\.js$', ], setupFiles: ['/../../jest.setup.js'], setupFilesAfterEnv: ['/../../setupTests.js'], diff --git a/packages/cashier-v2/jest.config.ts b/packages/cashier-v2/jest.config.ts index 0d090675368d..c6fc6fd77859 100644 --- a/packages/cashier-v2/jest.config.ts +++ b/packages/cashier-v2/jest.config.ts @@ -8,5 +8,4 @@ export default { '\\.s(c|a)ss$': '/../../__mocks__/styleMock.js', '^.+\\.svg$': '/../../__mocks__/fileMock.js', }, - transformIgnorePatterns: ['/node_modules/(?!(@deriv-com/ui)).+\\.js$'], }; diff --git a/packages/components/jest.config.js b/packages/components/jest.config.js index 3a99f439df05..3f0026d9c646 100644 --- a/packages/components/jest.config.js +++ b/packages/components/jest.config.js @@ -8,5 +8,4 @@ module.exports = { '^.+\\.svg$': '/../../__mocks__/styleMock.js', }, modulePathIgnorePatterns: ['/icon/', '/.out/'], - transformIgnorePatterns: ['/node_modules/(?!(@deriv-com/ui)).+\\.js$'], }; diff --git a/packages/p2p-v2/jest.config.js b/packages/p2p-v2/jest.config.js index 8b6235743d15..14f366dfb085 100644 --- a/packages/p2p-v2/jest.config.js +++ b/packages/p2p-v2/jest.config.js @@ -9,5 +9,4 @@ module.exports = { '\\.s(c|a)ss$': '/../../__mocks__/styleMock.js', '^.+\\.svg$': '/../../__mocks__/fileMock.js', }, - transformIgnorePatterns: ['/node_modules/(?!(@deriv-com/ui|@sendbird/chat)).+\\.js$'], }; diff --git a/packages/p2p/jest.config.js b/packages/p2p/jest.config.js index 50c74b48661a..57c4ce130600 100644 --- a/packages/p2p/jest.config.js +++ b/packages/p2p/jest.config.js @@ -33,5 +33,4 @@ module.exports = { '/coverage/lcov-report', '/dist', ], - transformIgnorePatterns: ['/node_modules/(?!(@sendbird/chat|@simplewebauthn/browser|@deriv-com/ui)).+\\.js$'], }; diff --git a/packages/trader/jest.config.js b/packages/trader/jest.config.js index ad7fb2c44098..10872325dee1 100644 --- a/packages/trader/jest.config.js +++ b/packages/trader/jest.config.js @@ -18,5 +18,4 @@ module.exports = { '^Services/(.*)$': '/src/Services/$1', '^Stores/(.*)$': '/src/Stores/$1', }, - transformIgnorePatterns: ['/node_modules/(?!(@deriv-com/quill-ui|@deriv-com/ui|@simplewebauthn/browser)).+\\.js$'], };