syncano-node
syncano-node copied to clipboard
syncano/test run function can't handle endpoint with file path different than endpoint name
schema:
user:
file: user/profile.js
error:
Error: Cannot find module '(...)/syncano/api/src/user.js'
at require (internal/module.js:11:18)
at (...)/syncano/api/node_modules/@syncano/test/lib/index.js:156:19
at Promise._execute (node_modules/bluebird/js/release/debuggability.js:303:9)
at Promise._resolveFromExecutor (node_modules/bluebird/js/release/promise.js:483:18)
at new Promise (node_modules/bluebird/js/release/promise.js:79:10)
at run (node_modules/@syncano/test/lib/index.js:120:10)
at Context.it.only (test/user/profile.test.js:27:26)