mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 12:44:07 -08:00
ci: Fix test checker glob (no changelog) (#6682)
ci: Fix test checker glob
This commit is contained in:
parent
9daf944ba5
commit
2a6cd26def
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
|
||||||
|
|
Loading…
Reference in a new issue