Enhance tests on SDK (#17312)

This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user