diff --git a/packages/hoppscotch-backend/docker-compose.yml b/packages/hoppscotch-backend/docker-compose.yml index 9b22e6f75..1480d8735 100644 --- a/packages/hoppscotch-backend/docker-compose.yml +++ b/packages/hoppscotch-backend/docker-compose.yml @@ -2,6 +2,7 @@ version: '3.0' services: local: build: . + command: ["pnpm", "run", "start:dev"] environment: - PRODUCTION=false - DATABASE_URL=postgresql://postgres:testpass@dev-db:5432/hoppscotch?connect_timeout=300 diff --git a/packages/hoppscotch-backend/global.d.ts b/packages/hoppscotch-backend/global.d.ts new file mode 100644 index 000000000..78769ebc0 --- /dev/null +++ b/packages/hoppscotch-backend/global.d.ts @@ -0,0 +1 @@ +import '@relmify/jest-fp-ts'; diff --git a/packages/hoppscotch-backend/jest.setup.js b/packages/hoppscotch-backend/jest.setup.js new file mode 100644 index 000000000..18ffac71d --- /dev/null +++ b/packages/hoppscotch-backend/jest.setup.js @@ -0,0 +1 @@ +require('@relmify/jest-fp-ts'); diff --git a/packages/hoppscotch-backend/package.json b/packages/hoppscotch-backend/package.json index 10be4a53e..23ae94f5e 100644 --- a/packages/hoppscotch-backend/package.json +++ b/packages/hoppscotch-backend/package.json @@ -74,6 +74,7 @@ "json", "ts" ], + "setupFilesAfterEnv": ["@relmify/jest-fp-ts"], "moduleNameMapper": { "^src/(.*)$": "/$1" },