Skip to content

Commit

Permalink
likhith/test cases for CFD password modal (deriv-com#6202)
Browse files Browse the repository at this point in the history
* feat: incorporated test cases

* feat: incorporated test cases to test password modal for Financial STP and DerivX

* fix: failing test case

* ref: incorporated review comments

* feat: incorporated error message check

* fix: incorporated review comments

* fix: incorporated review comments

* fix: retitled the test cases

* fix: incorporated review comments

* fix: reducing duplicated code

* fix: removed commented code

* fix: removed commented code

* ref: refactored the code
  • Loading branch information
likhith-deriv authored Sep 16, 2022
1 parent 35ce204 commit dbcdfd3
Show file tree
Hide file tree
Showing 4 changed files with 422 additions and 19 deletions.
25 changes: 13 additions & 12 deletions packages/cfd/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@ const baseConfigForPackages = require('../../jest.config.base');
module.exports = {
...baseConfigForPackages,
moduleNameMapper: {
"\\.s(c|a)ss$": "<rootDir>/../../__mocks__/styleMock.js",
"^.+\\.svg$": "<rootDir>/../../__mocks__/styleMock.js",
'^_common\/(.*)$': "<rootDir>/src/_common/$1",
'^App\/(.*)$': "<rootDir>/src/App/$1",
'^Assets\/(.*)$': "<rootDir>/src/Assets/$1",
'^Constants\/(.*)$': "<rootDir>/src/Constants/$1",
'^Constants$': "<rootDir>/src/Constants/index.js",
'^Documents\/(.*)$': "<rootDir>/src/Documents/$1",
'^Modules\/(.*)$': "<rootDir>/src/Modules/$1",
'^Utils\/(.*)$': "<rootDir>/src/Utils/$1",
'^Services\/(.*)$': "<rootDir>/src/Services/$1",
'^Stores\/(.*)$': "<rootDir>/src/Stores/$1",
'\\.s(c|a)ss$': '<rootDir>/../../__mocks__/styleMock.js',
'^.+\\.svg$': '<rootDir>/../../__mocks__/styleMock.js',
'^_common/(.*)$': '<rootDir>/src/_common/$1',
'^App/(.*)$': '<rootDir>/src/App/$1',
'^Assets/(.*)$': '<rootDir>/src/Assets/$1',
'^Components/(.*)$': '<rootDir>/src/Components/$1',
'^Constants/(.*)$': '<rootDir>/src/Constants/$1',
'^Constants$': '<rootDir>/src/Constants/index.js',
'^Documents/(.*)$': '<rootDir>/src/Documents/$1',
'^Modules/(.*)$': '<rootDir>/src/Modules/$1',
'^Utils/(.*)$': '<rootDir>/src/Utils/$1',
'^Services/(.*)$': '<rootDir>/src/Services/$1',
'^Stores/(.*)$': '<rootDir>/src/Stores/$1',
},
};
Loading

0 comments on commit dbcdfd3

Please sign in to comment.