mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
Enable absolute imports
This commit is contained in:
@@ -19,6 +19,11 @@
|
|||||||
"settings": {
|
"settings": {
|
||||||
"react": {
|
"react": {
|
||||||
"version": "16.5.2"
|
"version": "16.5.2"
|
||||||
|
},
|
||||||
|
"import/resolver": {
|
||||||
|
"node": {
|
||||||
|
paths: ["src"]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"env": {
|
"env": {
|
||||||
|
|||||||
5
awx/ui_next/jsconfig.json
Normal file
5
awx/ui_next/jsconfig.json
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"baseUrl": "src"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -12,9 +12,7 @@ import workflowReducer from '../../../components/Workflow/workflowReducer';
|
|||||||
|
|
||||||
jest.mock('../../../components/Workflow/workflowReducer');
|
jest.mock('../../../components/Workflow/workflowReducer');
|
||||||
|
|
||||||
const realWorkflowReducer = jest.requireActual(
|
const realWorkflowReducer = jest.requireActual('../../../components/Workflow/workflowReducer').default;
|
||||||
'../../../components/Workflow/workflowReducer'
|
|
||||||
).default;
|
|
||||||
|
|
||||||
jest.mock('../../../api');
|
jest.mock('../../../api');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user