diff --git a/jest.config.ts b/jest.config.ts index 1c079d8..bcae1fc 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -14,7 +14,7 @@ const config: Config = { coverageProvider: 'v8', testEnvironment: 'node', roots: [''], - testTimeout: 15000, + testTimeout: 30000, setupFilesAfterEnv: ['reflect-metadata'], modulePaths: [compilerOptions.baseUrl], coverageDirectory: './coverage', diff --git a/package.json b/package.json index fcae97d..2421f5e 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,8 @@ "db:create": "pnpm run build && NODE_ENV=development npx sequelize-cli db:create", "db:migrate:up": "pnpm run build && NODE_ENV=development npx sequelize-cli db:migrate", "db:migrate:undo": "pnpm run build && NODE_ENV=development npx sequelize-cli db:migrate:undo", - "test": "NODE_ENV=test TEST_MODEL=real jest", - "test:watch": "NODE_ENV=test TEST_MODEL=real jest --runInBand --watch .", + "test": "NODE_ENV=test TEST_MODEL=real jest --runInBand", + "test:watch": "NODE_ENV=test TEST_MODEL=real jest --runInBand --watch", "lint": "eslint ./src/**/*" }, "author": "Chinedu", diff --git a/src/tests/models/user.model.test.ts b/src/tests/models/user.model.test.ts index 91cc932..b0999e9 100644 --- a/src/tests/models/user.model.test.ts +++ b/src/tests/models/user.model.test.ts @@ -5,7 +5,7 @@ import { mockModel } from 'tests/test.model'; import { TEST_MODEL } from 'configs/env.config'; -describe('UserModel Test', () => { +describe('User Model Test', () => { let userModelMock: typeof UserModel; const user = { userType: '1', diff --git a/src/tests/repositories/user.repository.test.ts b/src/tests/repositories/user.repository.test.ts index 41e2c7a..90ed9d2 100644 --- a/src/tests/repositories/user.repository.test.ts +++ b/src/tests/repositories/user.repository.test.ts @@ -30,7 +30,7 @@ describe.only('User Repository Test', () => { ); }); - it('shows that an instance of UserModel exist', async () => { + it('shows that an instance of user model exist', async () => { expect(userRepositoryMock).toBeDefined(); });