Open dhaval-lila opened 6 years ago
I am writing custom jest transfomer for ejs templates something like this
const temp = require('underscore-template-loader'); module.exports = { process(src) { return temp(src); }, };
i am getting error something like this TypeError: this.async is not a function . what is the correct way to write transformer using underscore-template-loader?
TypeError: this.async is not a function
underscore-template-loader
@dhaval-lila have you been able to figure out the cause for this issue or a workaround? I am currently running into the same problem as well.
I am writing custom jest transfomer for ejs templates something like this
i am getting error something like this
TypeError: this.async is not a function
. what is the correct way to write transformer usingunderscore-template-loader
?