mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-11 11:34:26 +00:00
af2e0b69e1
1. Attempt an empty password every time a keystore is uploaded. 2. Delegate scrypt decryption (ie ethereumjs-wallet.fromV3) to its own web worker and interface with it through an async typescript function that gets handled in the wallet saga. This keeps the UI unblocked when scrypt takes a long time to decrypt. 3. Add logic to show a spinner x number of milliseconds after file upload so the user will understand when a wallet is being decrypted.
24 lines
894 B
JSON
24 lines
894 B
JSON
{
|
|
"rootDir": "../",
|
|
"transform": {
|
|
"^.+\\.tsx?$": "<rootDir>/node_modules/ts-jest/preprocessor.js"
|
|
},
|
|
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
|
|
"moduleDirectories": ["node_modules", "common"],
|
|
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "worker.ts"],
|
|
"moduleNameMapper": {
|
|
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
|
|
"<rootDir>/jest_config/__mocks__/fileMock.ts",
|
|
"\\.(css|scss|less)$": "<rootDir>/jest_config/__mocks__/styleMock.ts",
|
|
"\\.worker.ts":"<rootDir>/jest_config/__mocks__/workerMock.js"
|
|
},
|
|
"testPathIgnorePatterns": ["<rootDir>/common/config"],
|
|
"setupFiles": [
|
|
"<rootDir>/jest_config/setupJest.js",
|
|
"<rootDir>/jest_config/__mocks__/localStorage.ts"
|
|
],
|
|
"automock": false,
|
|
"snapshotSerializers": ["enzyme-to-json/serializer"],
|
|
"browser": true
|
|
}
|