Skip to content

Commit

Permalink
Test/Chore: Remove jest runInBand and permission step to tear-down
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Hoplin committed Jan 23, 2024
1 parent 841b450 commit 3841143
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/pre-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ jobs:
with:
name: build-result
path: .
- name: print-directory
run: ls -al
- name: Grant Permission in recursive
- name: Grant Permission to artifacts
run: chmod -R 777 .
- name: Install dotenv-cli for CI script
run: npm install -g dotenv-cli
Expand Down Expand Up @@ -128,6 +126,8 @@ jobs:
with:
name: build-result
path: .
- name: Grant Permission to artifacts
run: chmod -R 777 .
- name: Install dotenv-cli for CI script
run: npm install -g dotenv-cli
- id: e2e-test-phase
Expand Down Expand Up @@ -165,6 +165,8 @@ jobs:
with:
name: build-result
path: .
- name: Grant Permission to artifacts
run: chmod -R 777 .
- id: tear-down-phase
name: Test Database tear-down
continue-on-error: true
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest",
"ci:init": "dotenv -e .ci.env -- npx prisma db push",
"ci:tearDown": "dotenv -e .ci.env -- npx prisma db push --force-reset",
"ci:unit": "dotenv -e .ci.env -- jest --setupFiles jest --config ./test/jest-unit.json --runInBand",
"ci:e2e": "dotenv -e .ci.env -- jest --config ./test/jest-e2e.json --runInBand",
"ci:unit": "dotenv -e .ci.env -- jest --setupFiles jest --config ./test/jest-unit.json",
"ci:e2e": "dotenv -e .ci.env -- jest --config ./test/jest-e2e.json",
"test:init": "dotenv -e .test.env -- npx prisma db push",
"test:e2e": "dotenv -e .test.env -- jest --config ./test/jest-e2e.json --runInBand",
"test:e2e:cov": "dotenv -e .test.env -- jest --config ./test/jest-e2e.json --runInBand --coverage",
"test:unit": "dotenv -e .test.env -- jest --config ./test/jest-unit.json --runInBand",
"test:unit:cov": "dotenv -e .test.env -- jest --config ./test/jest-unit.json --runInBand --coverage"
"test:e2e": "dotenv -e .test.env -- jest --config ./test/jest-e2e.json",
"test:e2e:cov": "dotenv -e .test.env -- jest --config ./test/jest-e2e.json --coverage",
"test:unit": "dotenv -e .test.env -- jest --config ./test/jest-unit.json",
"test:unit:cov": "dotenv -e .test.env -- jest --config ./test/jest-unit.json --coverage"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.465.0",
Expand Down

0 comments on commit 3841143

Please sign in to comment.