mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
build: ignore changed files in test folders
This commit is contained in:
parent
65e56b9bd2
commit
1b889cd5a6
8
.github/scripts/check-tests.mjs
vendored
8
.github/scripts/check-tests.mjs
vendored
|
@ -53,7 +53,13 @@ const program = async () => {
|
|||
|
||||
// Filter out the .ts and .vue files from the changed files, .ts files with any kind of function declaration or class
|
||||
const changedVueFiles = changedFiles.filter(file => file.endsWith('.vue'));
|
||||
const changedTsFilesWithFunction = await filterAsync(async file => file.endsWith('.ts') && await hasFunctionOrClass(file), changedFiles);
|
||||
const changedTsFilesWithFunction = await filterAsync(
|
||||
async filePath =>
|
||||
filePath.endsWith('.ts') &&
|
||||
!(await glob('../../packages/*/**/{test,__tests__}/*.ts')).includes(filePath) &&
|
||||
await hasFunctionOrClass(filePath),
|
||||
changedFiles
|
||||
);
|
||||
|
||||
|
||||
// For each .ts or .vue file, check if there's a corresponding .test.ts or .spec.ts file in the repository
|
||||
|
|
Loading…
Reference in a new issue