For example, in a trailpack, there is no api/index.js file by default. yo trails:service does creates the api/service/index.js file correctly, but the generated tests fail because it assumes that api/index.js already contains a line like exports.service = require('./services')
For example, in a trailpack, there is no
api/index.js
file by default.yo trails:service
does creates theapi/service/index.js
file correctly, but the generated tests fail because it assumes thatapi/index.js
already contains a line likeexports.service = require('./services')