You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to run multiple test files using jest, I get following error:
PASS src/server/gis/common/value-calculator.test.js
FAIL src/server/gis/raster/index.test.js
● Test suite failed to run
TypeError: gdal.config.set is not a function
at Object.<anonymous> (node_modules/gdal/lib/gdal.js:58:14)
at Object.<anonymous> (src/server/gis/raster/index.js:3:39)
at Object.<anonymous> (src/server/gis/raster/index.test.js:3:14)
at<anonymous>
But everything works fine if I run only one test file (whichever it may be).
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
When I try to run multiple test files using jest, I get following error:
But everything works fine if I run only one test file (whichever it may be).
As per node-gdal library's author this is happening because jest is loading the same module twice in the same process.
npm -v
-->5.3.0
node -v
-->8.4.0
jest version -->
20.0.4
The text was updated successfully, but these errors were encountered: