Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import express from 'express';
import pkg from 'pg';
import bodyParser from 'body-parser';
import cors from 'cors';
import router from './routes/index.js';
import { DATABASE_URL, DB_PASSWORD, DB_USER } from './constants/index.js';
import router from './routes/index';
import { DATABASE_URL, DB_PASSWORD, DB_USER } from './constants/index';

const port = process.env.PORT || 5000;

Expand Down
12 changes: 12 additions & 0 deletions server/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
export default {
testMatch: [
"**/*.test.+(ts|tsx|js)",
],
transform: {
"^.+\\.(ts|tsx)$": "ts-jest"
},
testEnvironment: "node",
globals: {
__TEST_DB_URL__: process.env.TEST_DB_URL || "postgres://localhost:5432/mydb",
},
};
Loading