Reactjs Create React应用程序单元测试不在VMWare Horizon客户端中执行

Reactjs Create React应用程序单元测试不在VMWare Horizon客户端中执行,reactjs,jestjs,create-react-app,react-scripts,Reactjs,Jestjs,Create React App,React Scripts,当我在VMWare Horizon Client(VDI)Windows计算机上使用create react app创建react应用程序时,它运行正常,但在执行npm运行测试时,它会出现以下异常 events.js:167 throw er; // Unhandled 'error' event ^ Error: UNKNOWN: unknown error, watch at FSEvent.FSWatcher._handle.onchange (fs.js

当我在VMWare Horizon Client(VDI)Windows计算机上使用create react app创建react应用程序时,它运行正常,但在执行
npm运行测试时,它会出现以下异常

events.js:167
      throw er; // Unhandled 'error' event
      ^

Error: UNKNOWN: unknown error, watch
    at FSEvent.FSWatcher._handle.onchange (fs.js:1372:28)
Emitted 'error' event at:
    at NodeWatcher.checkedEmitError (Z:\MalayWorkplace\abc\abc-UI\node_modules\sane\src\node_watcher.js:159:10)
    at FSWatcher.emit (events.js:182:13)
    at FSEvent.FSWatcher._handle.onchange (fs.js:1378:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! abc-ui@0.1.0 test: `react-scripts test`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the abc-ui@0.1.0 test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\malay.matwankar\AppData\Roaming\npm-cache\_logs\2019-01-30T10_53_14_533Z-debug.log
我在我的普通windows机器上创建了相同的react应用程序,并执行了
npm运行测试
,它按预期成功执行

我尝试过删除和重新安装node_模块,也启用了轮询,但没有用

另外,
package.json中的
npm运行测试
使用react脚本运行测试。我没有对
package.json中的脚本进行任何更改

本地计算机和VDI上的节点和npm版本相同

Node version : 10.4.1
npm : 6.1.0

我也有相同版本的Windows,并且正在使用相同版本的CreateReact应用程序。这个问题似乎只存在于VDI环境中。此外,我无法升级或降级VDI上的npm/节点版本。

结果表明,只有在共享网络驱动器中执行此代码时,才会发生此错误。如果我们从作为磁盘存储的本地磁盘(如C驱动器)运行相同的代码,测试用例将按预期执行