Skip to content

Commit

Permalink
test: fix pieline and reduce jest timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
shihabmridha committed Jun 28, 2023
1 parent 131af9e commit 819f6cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ steps:
npm install
displayName: 'Installing dependencies'
- script: NODE_ENV=$(NODE_ENV) DB_PWD=$(DB_PASSWORD) DB_USER=$(DB_USERNAME) DB_HOST=$(DB_HOST) DB_NAME=$(DB_NAME) npm run test
- script: NODE_ENV=$(NODE_ENV) DB_PWD=$(DB_PASSWORD) DB_USER=$(DB_USERNAME) DB_HOST=$(DB_HOST) DB_NAME=$(DB_NAME) MONGO_PROTOCOL=mongodb+srv npm run test
displayName: 'Running tests'

- task: PublishTestResults@2
Expand All @@ -20,7 +20,7 @@ steps:
testRunner: JUnit
testResultsFiles: '**/test-report.xml'

- script: NODE_ENV=$(NODE_ENV) DB_PWD=$(DB_PASSWORD) DB_USER=$(DB_USERNAME) DB_HOST=$(DB_HOST) DB_NAME=$(DB_NAME) npm run test:cov
- script: NODE_ENV=$(NODE_ENV) DB_PWD=$(DB_PASSWORD) DB_USER=$(DB_USERNAME) DB_HOST=$(DB_HOST) DB_NAME=$(DB_NAME) MONGO_PROTOCOL=mongodb+srv npm run test:cov
displayName: 'Running test coverage'
condition: succeededOrFailed()

Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ module.exports = {
coverageDirectory: 'coverage',
coverageReporters: ['cobertura'],
testResultsProcessor: 'jest-junit-reporter',
testTimeout: 100000,
testTimeout: 10000,
};

0 comments on commit 819f6cc

Please sign in to comment.