build: adjust the order of file extensions by usage frequency in jest (#477)

This commit is contained in:
Simona 2020-10-27 16:52:16 +08:00 committed by GitHub
parent 4454c75d63
commit 19a2e5f416
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,5 +30,8 @@ module.exports = {
},
],
},
moduleFileExtensions: ['vue', 'json', 'ts', 'tsx', 'js', 'json'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'json', 'vue'],
// u can change this option to a more specific folder for test single component or util when dev
// for example, ['<rootDir>/packages/input']
roots: ['<rootDir>'],
}