mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
ci: Fix test checker glob (no changelog) (#6682)
ci: Fix test checker glob
This commit is contained in:
2
.github/scripts/check-tests.mjs
vendored
2
.github/scripts/check-tests.mjs
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user