This commit is contained in:
jack zhang 2024-04-15 11:56:12 +08:00 committed by GitHub
parent ad75debeaa
commit 2a4c356bc2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ module.exports = (cli) => {
const packageRoots = getPackagesDir(false); const packageRoots = getPackagesDir(false);
for (const dir of packageRoots) { for (const dir of packageRoots) {
try { try {
await run('yarn', ['test:server', '--coverage', dir]); await run('yarn', ['test:server', dir, '--coverage']);
} catch (e) { } catch (e) {
continue; continue;
} }
@ -35,7 +35,7 @@ module.exports = (cli) => {
const packageRoots = getPackagesDir(true); const packageRoots = getPackagesDir(true);
for (const dir of packageRoots) { for (const dir of packageRoots) {
try { try {
await run('yarn', ['test:client', '--coverage', dir]); await run('yarn', ['test:client', dir, '--coverage']);
} catch (e) { } catch (e) {
continue; continue;
} }

View File

@ -222,7 +222,7 @@ export const getReportsDirectory = (isServer) => {
return reportsDirectory; return reportsDirectory;
} else { } else {
return basePath; return `${basePath}${filterFileOrDir.replace('packages/', '').replace('src/', '')}`;
} }
}; };