[improvement] enable tsx type checking for functional component (#2764)

This commit is contained in:
neverland
2019-02-16 21:58:10 +08:00
committed by GitHub
parent 2ad525c45d
commit af0fb98c9e
3 changed files with 20 additions and 14 deletions

View File

@@ -3,7 +3,7 @@ module.exports = {
setupFiles: ['<rootDir>/test/jest.init.js'],
moduleFileExtensions: ['js', 'vue', 'ts', 'tsx'],
transform: {
'^.+\\.js$': '<rootDir>/test/jest.transform.js',
'^.+\\.(js|ts|tsx)$': '<rootDir>/test/jest.transform.js',
'.*\\.(vue)$': '<rootDir>/node_modules/vue-jest'
},
moduleNameMapper: {