2020-12-14 09:21:04 +00:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
2020-12-02 10:19:39 +00: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} }`;
|
|
|
|
},
|
|
|
|
};
|