ArcGIS JS 3.x Application testing with Intern

486
0
07-30-2019 04:34 AM
ArchanaVenkataraman
New Contributor III

Tried to do testing of an application built using ArcGIS JS API 3.x. But when I ran npx internthe console threw the following error:

Listening on localhost:9000 (ws 9001)
Tunnel started
TypeError: Cannot read property 'pathname' of undefined
at Object.<anonymous> @ node_modules\arcgis-js-api-3.27.0\kernel.js:25:126
at global.define @ node_modules\amd-loader\amd-loader.js:71:28
at Object.<anonymous> @ node_modules\arcgis-js-api-3.27.0\kernel.js:25:1
at Module.module.constructor._compile @ node_modules\amd-loader\amd-loader.js:10:31
at Object.require.extensions.(anonymous function) [as .js] @ node_modules\babel-register\lib\node.js:152:7
at tryModuleLoad @ internal\modules\cjs\loader.js:539:12


In a separate test,
If I run the testing with 4.x arcgis modules, it could run tests that contain "esri/geometry/Extent" and "esri/geometry/SpatialReference" but if I try to test with "esri/Map" and "esri/views/MapView", it throws the following error (pretty much the same kernel.js corresponding to 4.x)

Listening on localhost:9000 (ws 9001)
Tunnel started
Error: Cannot find module 'config-deferredInstrumentation?./promise/instrumentation'
@ node_modules\amd-loader\amd-loader.js:55:31
@ node_modules\amd-loader\amd-loader.js:79:24
at Array.map @ anonymous
at global.define @ node_modules\amd-loader\amd-loader.js:71:52
at Object.<anonymous> @ node_modules\esri\node_modules\dojo\Deferred.js:1:63
at Module.module.constructor._compile @ node_modules\amd-loader\amd-loader.js:10:31
at Object.require.extensions.(anonymous function) [as .js] @ node_modules\babel-register\lib\node.js:152:7

Please help me figure this out!

0 Kudos
0 Replies