chore: skip useless part (#39422)

This commit is contained in:
二货爱吃白萝卜 2022-12-09 11:03:38 +08:00 committed by GitHub
parent 62a2a25b8c
commit 614389ed70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ const transformIgnorePatterns = [
];
function getTestRegex(libDir) {
if (libDir === 'dist') {
if (['dist', 'lib', 'es'].includes(libDir)) {
return 'demo\\.test\\.(j|t)s$';
}
return '.*\\.test\\.(j|t)sx?$';