Enable absolute imports

This commit is contained in:
Jake McDermott 2021-06-30 14:41:38 -04:00
parent 9820c8cd81
commit dc1b312672
No known key found for this signature in database
GPG Key ID: 0E56ED990CDFCB4F
3 changed files with 11 additions and 3 deletions

View File

@ -19,6 +19,11 @@
"settings": {
"react": {
"version": "16.5.2"
},
"import/resolver": {
"node": {
paths: ["src"]
}
}
},
"env": {

View File

@ -0,0 +1,5 @@
{
"compilerOptions": {
"baseUrl": "src"
}
}

View File

@ -12,9 +12,7 @@ import workflowReducer from '../../../components/Workflow/workflowReducer';
jest.mock('../../../components/Workflow/workflowReducer');
const realWorkflowReducer = jest.requireActual(
'../../../components/Workflow/workflowReducer'
).default;
const realWorkflowReducer = jest.requireActual('../../../components/Workflow/workflowReducer').default;
jest.mock('../../../api');