File tree Expand file tree Collapse file tree 4 files changed +13
-10
lines changed
source/renderer/app/components
wallet/tokens/wallet-token Expand file tree Collapse file tree 4 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ module.exports = {
8989 // Jest does not support WASM imports from ESM modules
9090 // https://github.com/facebook/jest/issues/9430
9191 '^@iohk-jormungandr/wallet-js$' : 'identity-obj-proxy' ,
92+ 'tests/(.*)' : '<rootDir>/tests/$1' ,
9293 } ,
9394
9495 // An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
Original file line number Diff line number Diff line change @@ -4,13 +4,13 @@ import React from 'react';
44import noop from 'lodash/noop' ;
55import { cleanup , screen , waitFor } from '@testing-library/react' ;
66
7- import AssetSettingsDialog from './AssetSettingsDialog' ;
8-
9- import createTestBed from '../../../../../tests/_utils/TestBed' ;
7+ import createTestBed from 'tests/_utils/TestBed' ;
108import {
119 withDecimalPlacesToken ,
1210 zeroDecimalPlacesToken ,
13- } from '../../../../../tests/mocks/asset' ;
11+ } from 'tests/mocks/asset' ;
12+
13+ import AssetSettingsDialog from './AssetSettingsDialog' ;
1414
1515describe ( 'AssetSettingsDialog' , ( ) => {
1616 afterEach ( ( ) => cleanup ( ) ) ;
Original file line number Diff line number Diff line change @@ -4,13 +4,13 @@ import React from 'react';
44import noop from 'lodash/noop' ;
55import { cleanup , screen , waitFor } from '@testing-library/react' ;
66
7- import WalletToken from './WalletToken' ;
8-
9- import createTestBed from '../../../../../../../tests/_utils/TestBed' ;
7+ import createTestBed from 'tests/_utils/TestBed' ;
108import {
119 withDecimalPlacesToken ,
1210 zeroDecimalPlacesToken ,
13- } from '../../../../../../../tests/mocks/asset' ;
11+ } from 'tests/mocks/asset' ;
12+
13+ import WalletToken from './WalletToken' ;
1414
1515const DEFAULT_WALLET_PROPS = {
1616 isFavorite : false ,
Original file line number Diff line number Diff line change 2727 "module" : " commonjs" , /* Specify what module code is generated. */
2828 // "rootDir": "./", /* Specify the root folder within your source files. */
2929 "moduleResolution" : " node" , /* Specify how TypeScript looks up a file from a given module specifier. */
30- // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
31- // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
30+ "baseUrl" : " ./" , /* Specify the base directory to resolve non-relative module names. */
31+ "paths" : {
32+ "tests/*" : [" tests/*" ]
33+ }, /* Specify a set of entries that re-map imports to additional lookup locations. */
3234 // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
3335 // "typeRoots": [], /* Specify multiple folders that act like `./node_modules/@types`. */
3436 // "types": [], /* Specify type package names to be included without being referenced in a source file. */
You can’t perform that action at this time.
0 commit comments