15 lines
269 B
JavaScript
15 lines
269 B
JavaScript
|
const vueJest = require("vue-jest/lib/template-compiler");
|
||
|
|
||
|
module.exports = {
|
||
|
process(content) {
|
||
|
const { render } = vueJest({
|
||
|
content,
|
||
|
attrs: {
|
||
|
functional: false,
|
||
|
},
|
||
|
});
|
||
|
|
||
|
return `module.exports = { render: ${render} }`;
|
||
|
},
|
||
|
};
|