From 65e56b9bd295e1429d75d465dc2ee8975b77ea30 Mon Sep 17 00:00:00 2001 From: Csaba Tuncsik Date: Fri, 16 Jun 2023 10:48:36 +0200 Subject: [PATCH] build: update test file checker glob pattern --- .github/scripts/check-tests.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/check-tests.mjs b/.github/scripts/check-tests.mjs index 047dce0678..d5cf581eb5 100644 --- a/.github/scripts/check-tests.mjs +++ b/.github/scripts/check-tests.mjs @@ -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