Answer the question
In order to leave comments, you need to log in
How to properly import modules in newman?
I run postman tests through gitlab with newman and get Error: Cannot find module '/opt/dbo/node/newman/node_modules/ajv' and Error: Cannot find module 'ajv'. Ajv are in the node_modules folder on the server.
In tests I import var Ajv = require('ajv') or var Ajv = require('/opt/dbo/node/newman/node_modules/ajv') (absolute path). What am I doing wrong?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question