ci: Fix test checker glob (no changelog) (#6682)

ci: Fix test checker glob
This commit is contained in:
Iván Ovejero 2023-07-18 12:54:05 +02:00 committed by GitHub
parent 9daf944ba5
commit 2a6cd26def
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,7 +60,7 @@ const main = async () => {
.then(({stdout}) => stdout.trim().split('\n').filter(Boolean)); .then(({stdout}) => stdout.trim().split('\n').filter(Boolean));
// Get all .spec.ts and .test.ts files from the packages // Get all .spec.ts and .test.ts files from the packages
const specAndTestTsFiles = await glob('packages/*/**/{test,__tests__}/*.{spec,test}.ts'); const specAndTestTsFiles = await glob('packages/*/**/{test,__tests__}/**/*.{spec,test}.ts');
const specAndTestTsFilesNames = specAndTestTsFiles.map(file => path.parse(file).name.replace(/\.(test|spec)/, '')); const specAndTestTsFilesNames = specAndTestTsFiles.map(file => path.parse(file).name.replace(/\.(test|spec)/, ''));
// Filter out the .ts and .vue files from the changed files // Filter out the .ts and .vue files from the changed files