Enhance tests on SDK (#17312)

![20260121_180621](https://github.com/user-attachments/assets/9284f2b1-6b4e-40fb-abf1-9c981fcb7166)
This commit is contained in:
Charles Bochet
2026-01-21 19:27:04 +01:00
committed by GitHub
parent 981956a636
commit cb4110e894
50 changed files with 792 additions and 311 deletions
@@ -1,12 +1,8 @@
export const computeFunctionOutputPath = (
handlerPath: string,
): string => {
export const computeFunctionOutputPath = (handlerPath: string): string => {
const normalizedPath = handlerPath.replace(/\\/g, '/');
let relativePath = normalizedPath;
if (relativePath.startsWith('src/app/')) {
relativePath = relativePath.slice('src/app/'.length);
} else if (relativePath.startsWith('src/')) {
if (relativePath.startsWith('src/')) {
relativePath = relativePath.slice('src/'.length);
}