2020-12-14 10:21:04 +01:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
2020-12-02 11:19:39 +01:00
|
|
|
const vueJest = require("vue-jest/lib/template-compiler");
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
process(content) {
|
|
|
|
const { render } = vueJest({
|
|
|
|
content,
|
|
|
|
attrs: {
|
|
|
|
functional: false,
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
return `module.exports = { render: ${render} }`;
|
|
|
|
},
|
|
|
|
};
|