Closed theromie closed 4 years ago
After running jest test I am getting TypeError: handler is not a constructor I am using node version : v10.16.0 and mapper version : v1.1.0
code const mapRoutes = require('express-routes-mapper'); const mappedOpenRoutes = mapRoutes(config.publicRoutes, 'api/controllers/');
const mapRoutes = require('express-routes-mapper');
const mappedOpenRoutes = mapRoutes(config.publicRoutes, 'api/controllers/');
at mappedOpenRoutes = mapRoutes giving error
After running jest test I am getting TypeError: handler is not a constructor I am using node version : v10.16.0 and mapper version : v1.1.0
code
const mapRoutes = require('express-routes-mapper');
const mappedOpenRoutes = mapRoutes(config.publicRoutes, 'api/controllers/');
at mappedOpenRoutes = mapRoutes giving error