Skip to content

Commit

Permalink
feat(TypeScript): fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip London committed Jan 9, 2020
1 parent 99557ce commit 158aa56
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
8 changes: 6 additions & 2 deletions packages/blockchain-wallet-v4-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@
"!src/favicons.js",
"!src/index*.js",
"!src/create-nonce.js",
"!src/data/actions.js",
"!src/data/actions.ts",
"!src/data/actionTypes.js",
"!src/data/index.js",
"!src/data/model.js",
"!src/data/rootReducer.js",
"!src/data/rootReducer.ts",
"!src/data/types.ts",
"!src/data/sagas.js",
"!src/data/selectors.js",
"!src/data/components/sagas.js",
Expand Down Expand Up @@ -77,6 +78,9 @@
"transformIgnorePatterns": [
"node_modules/(?!(blockchain-info-components|@blockchain-com/components|blockchain-wallet-v4)/)"
],
"modulePaths": [
"src"
],
"moduleNameMapper": {
"services/(.*)": "<rootDir>/src/services/$1",
"\\.(pdf|jpg|jpeg|png|gif|eot|otf|svg|ttf|woff|woff2)$": "<rootDir>/src/__mocks__/fileMock.js",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as actions from '../../actions'
import { actions, model } from 'data'
import { coreSagasFactory } from 'blockchain-wallet-v4/src'
import { model } from 'data'
import { testSaga } from 'redux-saga-test-plan'
import bchTransactionsSagas, { logLocation } from './sagas'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as actions from '../../actions'
import { actions, model } from 'data'
import { coreSagasFactory } from 'blockchain-wallet-v4/src'
import { model } from 'data'
import { testSaga } from 'redux-saga-test-plan'
import btcTransactionsSagas, { logLocation } from './sagas'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
GreyCartridge,
SuccessCartridge
} from '../AirdropInfo/model'
import { CampaignType } from '../types'
import { CampaignType } from 'data/types'
import { FormattedMessage } from 'react-intl'
import { Icon, Text } from 'blockchain-info-components'
import React from 'react'
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"strict": true,
"target": "es6",
"paths": {
"data": ["blockchain-wallet-v4-frontend/src/data/index.ts"],
"data": ["blockchain-wallet-v4-frontend/src/data/"],
"data/*": ["blockchain-wallet-v4-frontend/src/data/*"],
"components/*": ["blockchain-wallet-v4-frontend/src/components/*"],
"layouts/*": ["blockchain-wallet-v4-frontend/src/layouts/*"],
Expand Down

0 comments on commit 158aa56

Please sign in to comment.