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" }