test(vue): add tests (#22089)

This commit is contained in:
Liam DeBeasi
2020-09-15 09:54:35 -04:00
committed by GitHub
parent a362234472
commit 3ea92f5527
9 changed files with 6104 additions and 12 deletions

View File

@ -0,0 +1,14 @@
const tsc = require('typescript');
const tsConfig = require('../tsconfig.json');
// force the output to use commonjs modules required by jest
tsConfig.compilerOptions.module = 'commonjs';
module.exports = {
process(src, path) {
if (path.endsWith('.ts') || path.endsWith('.tsx')) {
return tsc.transpile(src, tsConfig.compilerOptions, path, []);
}
return src;
},
};