mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
build: update test file checker glob pattern
This commit is contained in:
parent
645236753e
commit
65e56b9bd2
2
.github/scripts/check-tests.mjs
vendored
2
.github/scripts/check-tests.mjs
vendored
|
@ -48,7 +48,7 @@ const program = async () => {
|
|||
const changedFiles = await execAsync(changedFilesCommand).then(({stdout}) => stdout.toString().trim().split('\n'));
|
||||
|
||||
// Get all .spec.ts and .test.ts files from the packages
|
||||
const specAndTestTsFiles = await glob('../../packages/*/**/__test__/*.{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)/, ''));
|
||||
|
||||
// Filter out the .ts and .vue files from the changed files, .ts files with any kind of function declaration or class
|
||||
|
|
Loading…
Reference in a new issue