Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reactjs 无法在测试执行期间导入子组件_Reactjs_Typescript_Jestjs - Fatal编程技术网

Reactjs 无法在测试执行期间导入子组件

Reactjs 无法在测试执行期间导入子组件,reactjs,typescript,jestjs,Reactjs,Typescript,Jestjs,我的项目结构如下所示: 正如您所看到的,它有嵌套的导出-我相信这是非常常见的 有了这些设置,下面的语句在ReactJS运行时工作: import { ActionTypes } from '../../../ReduxStoreModels'; 但是,测试执行失败,消息为not found of undefined for LOWER block ActionTypes.AT.get 如果我们使用以下导入,它将得到修复: import { ActionTypes } from '../..

我的项目结构如下所示:

正如您所看到的,它有嵌套的导出-我相信这是非常常见的

有了这些设置,下面的语句在ReactJS运行时工作:

import { ActionTypes } from '../../../ReduxStoreModels';
但是,测试执行失败,消息为not found of undefined for LOWER block

ActionTypes.AT.get
如果我们使用以下导入,它将得到修复:

import { ActionTypes } from '../../../ReduxStoreModels/ActionTypes';
我们正在使用Jest(24.0.15)进行测试。知道为什么会失败吗?它以前工作较早,升级后坏了。有新的笑话吗