From 1546a45549b35e36aae88088518be72646730c75 Mon Sep 17 00:00:00 2001 From: ruben-rebelo Date: Fri, 9 Feb 2024 09:30:17 +0000 Subject: [PATCH 1/2] [TS migration] Migrate e2e routes to Typescript --- tests/e2e/server/{routes.js => routes.ts} | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) rename tests/e2e/server/{routes.js => routes.ts} (87%) diff --git a/tests/e2e/server/routes.js b/tests/e2e/server/routes.ts similarity index 87% rename from tests/e2e/server/routes.js rename to tests/e2e/server/routes.ts index 0d23866ec808..44a5b8bd3ec1 100644 --- a/tests/e2e/server/routes.js +++ b/tests/e2e/server/routes.ts @@ -1,4 +1,6 @@ -module.exports = { +type Routes = Record; + +const routes: Routes = { // The app calls this endpoint to know which test to run testConfig: '/test_config', @@ -17,3 +19,5 @@ module.exports = { // Gets the network cache testGetNetworkCache: '/test_get_network_cache', }; + +export default routes; From 0f8b31dcc34e04b515f64bc662998f111e5056a2 Mon Sep 17 00:00:00 2001 From: ruben-rebelo Date: Mon, 4 Mar 2024 09:12:33 +0000 Subject: [PATCH 2/2] [TS migration][Routes] Feedback --- tests/e2e/server/routes.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/e2e/server/routes.ts b/tests/e2e/server/routes.ts index 44a5b8bd3ec1..0a204f491d18 100644 --- a/tests/e2e/server/routes.ts +++ b/tests/e2e/server/routes.ts @@ -1,6 +1,4 @@ -type Routes = Record; - -const routes: Routes = { +const routes = { // The app calls this endpoint to know which test to run testConfig: '/test_config', @@ -18,6 +16,6 @@ const routes: Routes = { // Gets the network cache testGetNetworkCache: '/test_get_network_cache', -}; +} satisfies Record; export default routes;