Skip to content

Commit

Permalink
change jest
Browse files Browse the repository at this point in the history
  • Loading branch information
Behzad-rabiei committed Mar 7, 2024
1 parent 00b2f08 commit 6d7ec41
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ COPY . .
RUN npm ci

FROM base AS test
CMD [ "npx", "jest", "--detectOpenHandles", "--coverage" ]
CMD [ "npx", "jest", "--runInBand", "--coverage" ]

FROM base AS build
RUN npm run build
Expand Down
8 changes: 8 additions & 0 deletions __tests__/integration/notion.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,11 @@
// })
// })
// });

describe('TEST', () => {
describe('TEST', () => {
test('TEST', async () => {
expect(true).toEqual(true);
});
});
});
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"postbuild": "npm run copy-files",
"copy-files": "copyfiles -u 1 src/**/*.yml lib",
"dev": "env-cmd -f ./src/config/dev.env nodemon ./src/index.ts",
"test": "env-cmd -f ./src/config/test.env jest --detectOpenHandles",
"test": "env-cmd -f ./src/config/test.env jest --runInBand",
"dev-migrate:create": "migrate create --template-file ./src/migrations/utils/template.ts --migrations-dir=\"./src/migrations/db\" --compiler=\"ts:./src/migrations/utils/ts-compiler.js\"",
"dev-migrate:up": "migrate --migrations-dir=\"./src/migrations/db\" up --compiler=\"ts:./src/migrations/utils/ts-compiler.js\"",
"dev-migrate:down": "migrate --migrations-dir=\"./src/migrations/db\" --compiler=\"ts:./src/migrations/utils/ts-compiler.js\" down",
Expand Down Expand Up @@ -91,4 +91,4 @@
"ts-node": "^10.9.1",
"typescript": "^4.9.3"
}
}
}

0 comments on commit 6d7ec41

Please sign in to comment.