Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DR-750 Add back unit test suite #398

Open
wants to merge 45 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
fd0ee43
new test cases in auth service, mail service and acl module service
Aish1990 Aug 1, 2024
f4e0b16
Merge branch 'develop' of https://github.com/d-rec/drec-origin into D…
Aish1990 Aug 2, 2024
fa688e1
unit test update
Aish1990 Aug 28, 2024
e7c7924
Merge branch 'develop' of https://github.com/d-rec/drec-origin into D…
Aish1990 Aug 28, 2024
b87252d
Unit test suit
Aish1990 Sep 2, 2024
ee777cd
Merge branch 'develop' of https://github.com/d-rec/drec-origin into D…
Aish1990 Sep 2, 2024
e9bdb52
Unit test
Aish1990 Sep 5, 2024
ebf9a34
unit test fix
Aish1990 Sep 11, 2024
7b16068
Unt test changes
Aish1990 Sep 25, 2024
db5815b
linters fix
Aish1990 Oct 1, 2024
ebd83ff
Merge branch 'develop' of https://github.com/d-rec/drec-origin into D…
Aish1990 Oct 1, 2024
b3a994d
linters fix
Aish1990 Oct 1, 2024
7eef6e7
eslint fix
Aish1990 Oct 1, 2024
7244018
test cases fixed
Aish1990 Oct 3, 2024
e380d12
yarm lint fixed
Aish1990 Oct 3, 2024
e016dc3
prettier fixed
Aish1990 Oct 3, 2024
8c6bf40
eslint fixed
Aish1990 Oct 3, 2024
c5a8e75
eslint fixed
Aish1990 Oct 3, 2024
480ed98
prettier fixed
Aish1990 Oct 3, 2024
6f7b9aa
eslint fixed
Aish1990 Oct 3, 2024
4420974
prettier fixed
Aish1990 Oct 3, 2024
8de20bf
eslint fixed
Aish1990 Oct 3, 2024
70aed23
eslint fixed
Aish1990 Oct 3, 2024
4bb724e
eslint fixed
Aish1990 Oct 3, 2024
608d57d
prettier fixed
Aish1990 Oct 3, 2024
7d49dcf
test cases fixed
Aish1990 Oct 3, 2024
621d68a
Merge branch 'develop' of https://github.com/d-rec/drec-origin into D…
Aish1990 Oct 3, 2024
17c4699
yml file fixed
Aish1990 Oct 3, 2024
88f1c7f
yml file fixed
Aish1990 Oct 3, 2024
4e4086d
yml file fixed
Aish1990 Oct 3, 2024
11e435e
yml file fixed
Aish1990 Oct 3, 2024
20b1389
yml file fixed
Aish1990 Oct 3, 2024
9acd5b1
yml file fixed
Aish1990 Oct 3, 2024
feaeb08
yml file fixed
Aish1990 Oct 3, 2024
2110d38
yml file fixed
Aish1990 Oct 3, 2024
2aeed88
yml file fixed
Aish1990 Oct 3, 2024
d723131
yml file fixed
Aish1990 Oct 3, 2024
0e18af5
yml file fixed
Aish1990 Oct 3, 2024
bdafb5b
yml file fixed
Aish1990 Oct 3, 2024
d2992c8
yml file change
Aish1990 Oct 3, 2024
b9726b2
yml file fixed
Aish1990 Oct 3, 2024
b03555e
yml file fixed
Aish1990 Oct 3, 2024
df1120d
yml file fixed
Aish1990 Oct 3, 2024
bfbd9cb
yml file fixed
Aish1990 Oct 3, 2024
608e803
yml file fixed
Aish1990 Oct 3, 2024
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
28 changes: 28 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,31 @@

- name: Build drec-origin
run: rush build --verbose

unit-test:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- uses: actions/setup-node@v4
with:
node-version: lts/iron

- name: Install tooling
run: |
npm i -g @microsoft/rush
npm i -g pnpm@9

- name: Install drec-origin
run: |
rush install

- name: Run Unit Test (all)
working-directory: apps/drec-api
run: pnpm run test:jest -- --maxWorkers=4

- name: Run Code Coverage (all)
working-directory: apps/drec-api
run: pnpm run coverage:jest -- --maxWorkers=4

Check failure on line 113 in .github/workflows/check.yml

View workflow job for this annotation

GitHub Actions / Run yamllint

113:54 [new-line-at-end-of-file] no new line character at the end of file
6 changes: 3 additions & 3 deletions apps/drec-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"typeorm:drop:certificate": "node_modules/typeorm/cli.js schema:drop --config node_modules/@energyweb/origin-247-certificate/dist/js/ormconfig.js",
"typeorm:dropAndMigrate": "pnpm typeorm:drop && pnpm typeorm:run",
"test:jest": "jest",
"test:e2e:jest": "mocha -r ts-node/register test/*.e2e-spec.ts --timeout 60000 --exit",
"test:e2e:jest": "jest \"test/**/*.e2e-spec.ts\"",
"test:e2e": "pnpm typeorm:drop && pnpm migrate && pnpm test:e2e:jest",
"test:e2e:single": "sh ./scripts/test-e2e-single.sh",
"compodoc": "npx compodoc -p tsconfig.json -n \"Drec api documentation\"",
Expand Down Expand Up @@ -152,13 +152,13 @@
"eslint": "7.15.0",
"eslint-config-airbnb-base": "14.2.1",
"eslint-config-prettier": "7.0.0",
"jest": "26.6.0",
"jest": "29.7.0",
"mocha": "~10.4.0",
"prettier": "~3.2.5",
"shx": "0.3.3",
"sinon": "^17.0.1",
"supertest": "6.0.1",
"ts-jest": "^26.5.0",
"ts-jest": "29.2.3",
"ts-node": "9.1.0",
"typescript": "4.1.3",
"wait-on": "5.2.1"
Expand Down
Loading
Loading