mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 21:49:25 +08:00
fix: bug (#4038)
This commit is contained in:
parent
ad75debeaa
commit
2a4c356bc2
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -222,7 +222,7 @@ export const getReportsDirectory = (isServer) => {
|
|||||||
|
|
||||||
return reportsDirectory;
|
return reportsDirectory;
|
||||||
} else {
|
} else {
|
||||||
return basePath;
|
return `${basePath}${filterFileOrDir.replace('packages/', '').replace('src/', '')}`;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user