From 28ae4e5941c31585d4c82ad9a3c8a3c2dbeba614 Mon Sep 17 00:00:00 2001 From: aelassas Date: Wed, 20 Nov 2024 18:39:54 +0100 Subject: [PATCH] Rename tests folder to __tests__ --- api/{tests => __tests__}/booking.test.ts | 0 api/{tests => __tests__}/car.test.ts | 0 api/{tests => __tests__}/config.test.ts | 0 api/{tests => __tests__}/contracts/contract1.pdf | Bin api/{tests => __tests__}/contracts/contract2.pdf | Bin api/{tests => __tests__}/country.test.ts | 0 api/{tests => __tests__}/database.test.ts | 0 api/{tests => __tests__}/globalSetup.ts | 0 api/{tests => __tests__}/helper.test.ts | 0 api/{tests => __tests__}/img/avatar1.jpg | Bin api/{tests => __tests__}/img/avatar2.png | Bin api/{tests => __tests__}/img/bmw-x1.jpg | Bin api/{tests => __tests__}/img/bmw-x5.jpg | Bin api/{tests => __tests__}/img/location0.jpg | Bin api/{tests => __tests__}/img/location1.jpg | Bin api/{tests => __tests__}/img/location2.jpg | Bin api/{tests => __tests__}/index.test.ts | 0 api/{tests => __tests__}/location.test.ts | 0 api/{tests => __tests__}/logger.test.ts | 0 api/{tests => __tests__}/middleware.test.ts | 0 api/{tests => __tests__}/miscellaneous.test.ts | 0 api/{tests => __tests__}/notification.test.ts | 0 api/{tests => __tests__}/stripe.test.ts | 0 api/{tests => __tests__}/supplier.test.ts | 0 api/{tests => __tests__}/testHelper.ts | 0 api/{tests => __tests__}/user.test.ts | 0 api/jest.config.json | 6 +++--- 27 files changed, 3 insertions(+), 3 deletions(-) rename api/{tests => __tests__}/booking.test.ts (100%) rename api/{tests => __tests__}/car.test.ts (100%) rename api/{tests => __tests__}/config.test.ts (100%) rename api/{tests => __tests__}/contracts/contract1.pdf (100%) rename api/{tests => __tests__}/contracts/contract2.pdf (100%) rename api/{tests => __tests__}/country.test.ts (100%) rename api/{tests => __tests__}/database.test.ts (100%) rename api/{tests => __tests__}/globalSetup.ts (100%) rename api/{tests => __tests__}/helper.test.ts (100%) rename api/{tests => __tests__}/img/avatar1.jpg (100%) rename api/{tests => __tests__}/img/avatar2.png (100%) rename api/{tests => __tests__}/img/bmw-x1.jpg (100%) rename api/{tests => __tests__}/img/bmw-x5.jpg (100%) rename api/{tests => __tests__}/img/location0.jpg (100%) rename api/{tests => __tests__}/img/location1.jpg (100%) rename api/{tests => __tests__}/img/location2.jpg (100%) rename api/{tests => __tests__}/index.test.ts (100%) rename api/{tests => __tests__}/location.test.ts (100%) rename api/{tests => __tests__}/logger.test.ts (100%) rename api/{tests => __tests__}/middleware.test.ts (100%) rename api/{tests => __tests__}/miscellaneous.test.ts (100%) rename api/{tests => __tests__}/notification.test.ts (100%) rename api/{tests => __tests__}/stripe.test.ts (100%) rename api/{tests => __tests__}/supplier.test.ts (100%) rename api/{tests => __tests__}/testHelper.ts (100%) rename api/{tests => __tests__}/user.test.ts (100%) diff --git a/api/tests/booking.test.ts b/api/__tests__/booking.test.ts similarity index 100% rename from api/tests/booking.test.ts rename to api/__tests__/booking.test.ts diff --git a/api/tests/car.test.ts b/api/__tests__/car.test.ts similarity index 100% rename from api/tests/car.test.ts rename to api/__tests__/car.test.ts diff --git a/api/tests/config.test.ts b/api/__tests__/config.test.ts similarity index 100% rename from api/tests/config.test.ts rename to api/__tests__/config.test.ts diff --git a/api/tests/contracts/contract1.pdf b/api/__tests__/contracts/contract1.pdf similarity index 100% rename from api/tests/contracts/contract1.pdf rename to api/__tests__/contracts/contract1.pdf diff --git a/api/tests/contracts/contract2.pdf b/api/__tests__/contracts/contract2.pdf similarity index 100% rename from api/tests/contracts/contract2.pdf rename to api/__tests__/contracts/contract2.pdf diff --git a/api/tests/country.test.ts b/api/__tests__/country.test.ts similarity index 100% rename from api/tests/country.test.ts rename to api/__tests__/country.test.ts diff --git a/api/tests/database.test.ts b/api/__tests__/database.test.ts similarity index 100% rename from api/tests/database.test.ts rename to api/__tests__/database.test.ts diff --git a/api/tests/globalSetup.ts b/api/__tests__/globalSetup.ts similarity index 100% rename from api/tests/globalSetup.ts rename to api/__tests__/globalSetup.ts diff --git a/api/tests/helper.test.ts b/api/__tests__/helper.test.ts similarity index 100% rename from api/tests/helper.test.ts rename to api/__tests__/helper.test.ts diff --git a/api/tests/img/avatar1.jpg b/api/__tests__/img/avatar1.jpg similarity index 100% rename from api/tests/img/avatar1.jpg rename to api/__tests__/img/avatar1.jpg diff --git a/api/tests/img/avatar2.png b/api/__tests__/img/avatar2.png similarity index 100% rename from api/tests/img/avatar2.png rename to api/__tests__/img/avatar2.png diff --git a/api/tests/img/bmw-x1.jpg b/api/__tests__/img/bmw-x1.jpg similarity index 100% rename from api/tests/img/bmw-x1.jpg rename to api/__tests__/img/bmw-x1.jpg diff --git a/api/tests/img/bmw-x5.jpg b/api/__tests__/img/bmw-x5.jpg similarity index 100% rename from api/tests/img/bmw-x5.jpg rename to api/__tests__/img/bmw-x5.jpg diff --git a/api/tests/img/location0.jpg b/api/__tests__/img/location0.jpg similarity index 100% rename from api/tests/img/location0.jpg rename to api/__tests__/img/location0.jpg diff --git a/api/tests/img/location1.jpg b/api/__tests__/img/location1.jpg similarity index 100% rename from api/tests/img/location1.jpg rename to api/__tests__/img/location1.jpg diff --git a/api/tests/img/location2.jpg b/api/__tests__/img/location2.jpg similarity index 100% rename from api/tests/img/location2.jpg rename to api/__tests__/img/location2.jpg diff --git a/api/tests/index.test.ts b/api/__tests__/index.test.ts similarity index 100% rename from api/tests/index.test.ts rename to api/__tests__/index.test.ts diff --git a/api/tests/location.test.ts b/api/__tests__/location.test.ts similarity index 100% rename from api/tests/location.test.ts rename to api/__tests__/location.test.ts diff --git a/api/tests/logger.test.ts b/api/__tests__/logger.test.ts similarity index 100% rename from api/tests/logger.test.ts rename to api/__tests__/logger.test.ts diff --git a/api/tests/middleware.test.ts b/api/__tests__/middleware.test.ts similarity index 100% rename from api/tests/middleware.test.ts rename to api/__tests__/middleware.test.ts diff --git a/api/tests/miscellaneous.test.ts b/api/__tests__/miscellaneous.test.ts similarity index 100% rename from api/tests/miscellaneous.test.ts rename to api/__tests__/miscellaneous.test.ts diff --git a/api/tests/notification.test.ts b/api/__tests__/notification.test.ts similarity index 100% rename from api/tests/notification.test.ts rename to api/__tests__/notification.test.ts diff --git a/api/tests/stripe.test.ts b/api/__tests__/stripe.test.ts similarity index 100% rename from api/tests/stripe.test.ts rename to api/__tests__/stripe.test.ts diff --git a/api/tests/supplier.test.ts b/api/__tests__/supplier.test.ts similarity index 100% rename from api/tests/supplier.test.ts rename to api/__tests__/supplier.test.ts diff --git a/api/tests/testHelper.ts b/api/__tests__/testHelper.ts similarity index 100% rename from api/tests/testHelper.ts rename to api/__tests__/testHelper.ts diff --git a/api/tests/user.test.ts b/api/__tests__/user.test.ts similarity index 100% rename from api/tests/user.test.ts rename to api/__tests__/user.test.ts diff --git a/api/jest.config.json b/api/jest.config.json index df2f4fa2f..182cee879 100644 --- a/api/jest.config.json +++ b/api/jest.config.json @@ -7,7 +7,7 @@ ".ts" ], "roots": [ - "./tests/" + "./__tests__/" ], "testMatch": [ "**/*.test.ts" @@ -21,8 +21,8 @@ "src/**/*.ts", "!**/node_modules/**", "!**/dist/**", - "!**/tests/**" + "!**/__tests__/**" ], "testTimeout": 120000, - "globalSetup": "./dist/tests/globalSetup.js" + "globalSetup": "./dist/__tests__/globalSetup.js" }