From a7a74e0c4c98af97add0c978c6227c6c416250fd Mon Sep 17 00:00:00 2001 From: Julian Kobrynski Date: Mon, 19 Feb 2024 07:55:41 +0100 Subject: [PATCH 1/2] change file extension to .ts --- .../utils/{getCurrentBranchName.js => getCurrentBranchName.ts} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename tests/e2e/utils/{getCurrentBranchName.js => getCurrentBranchName.ts} (100%) diff --git a/tests/e2e/utils/getCurrentBranchName.js b/tests/e2e/utils/getCurrentBranchName.ts similarity index 100% rename from tests/e2e/utils/getCurrentBranchName.js rename to tests/e2e/utils/getCurrentBranchName.ts From 67b39c13e33910a5ca59c7796203dfa229a81792 Mon Sep 17 00:00:00 2001 From: Julian Kobrynski Date: Wed, 21 Feb 2024 13:20:00 +0100 Subject: [PATCH 2/2] migrate getCurrentBranchName to TypeScript --- tests/e2e/utils/getCurrentBranchName.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e/utils/getCurrentBranchName.ts b/tests/e2e/utils/getCurrentBranchName.ts index 55df11010214..7ae958b08e13 100644 --- a/tests/e2e/utils/getCurrentBranchName.ts +++ b/tests/e2e/utils/getCurrentBranchName.ts @@ -1,6 +1,6 @@ import {execSync} from 'child_process'; -const getCurrentBranchName = () => { +const getCurrentBranchName = (): string => { const stdout = execSync('git rev-parse --abbrev-ref HEAD', { encoding: 'utf8', });