Skip to content

Commit a6bae7c

Browse files
NiconiKimgcarlex74LucaTvlLucaTvl
authored
Release 1.0.3 (#196)
* feat: implement new validation endpoint * Refactor: Reduce password reset link expiration time and fix the link (#194) * refactor: reduce password reset link expiration time to 15 minutes and update email content accordingly * test: add unit tests for forgotPassword and resetPassword methods in AuthService * fix: deleted the added tests * test: add comprehensive tests for password reset with 15-minute expiration * fix: configure coverage reporting for CI/CD * fix: resolve ESLint errors * fix: resolve TypeScript type error and improve CI coverage reporting --------- Co-authored-by: LucaTvl <lucatrincavell@frro.utn.edu.ar> Co-authored-by: NiconiKimg <pedemontenicolas2004@gmail.com> * feat: enhance security and error handling in application responses * test: add testing to uncovered files * test: add comprehensive unit tests for question module (#197) Co-authored-by: LucaTvl <LucaTvl@users.noreply.github.com> Co-authored-by: carlex74 <carlex74@users.noreply.github.com> --------- Co-authored-by: carlex74 <r.icardogugliermino@gmail.com> Co-authored-by: Luca Trincavelli <155491309+LucaTvl@users.noreply.github.com> Co-authored-by: LucaTvl <lucatrincavell@frro.utn.edu.ar> Co-authored-by: LucaTvl <LucaTvl@users.noreply.github.com> Co-authored-by: carlex74 <carlex74@users.noreply.github.com>
1 parent 5f8404a commit a6bae7c

16 files changed

Lines changed: 2522 additions & 36 deletions

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,18 @@ jobs:
6363
- name: Run Tests & Coverage
6464
run: pnpm run test:coverage
6565

66+
- name: List coverage files
67+
if: always()
68+
run: ls -la coverage/ || echo "Coverage directory not found"
69+
6670
- name: Upload coverage to Codecov
6771
uses: codecov/codecov-action@v5
6872
if: always()
6973
with:
7074
token: ${{ secrets.CODECOV_TOKEN }}
7175
slug: upskill-team/back-end-dsw
7276
files: ./coverage/lcov.info
73-
fail_ci_if_error: true
77+
fail_ci_if_error: false
7478
verbose: true
7579

7680
build:

codecov.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
codecov:
2+
require_ci_to_pass: yes
3+
notify:
4+
wait_for_ci: yes
5+
6+
coverage:
7+
precision: 2
8+
round: down
9+
range: '70...100'
10+
11+
status:
12+
project:
13+
default:
14+
target: auto
15+
threshold: 0%
16+
base: auto
17+
patch:
18+
default:
19+
target: 80%
20+
threshold: 0%
21+
22+
comment:
23+
layout: 'reach,diff,flags,tree'
24+
behavior: default
25+
require_changes: no
26+
27+
ignore:
28+
- 'src/**/*.spec.ts'
29+
- 'src/**/*.integration.spec.ts'
30+
- 'src/shared/testing/**'
31+
- 'src/server.ts'
32+
- '**/*.d.ts'

eslint.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ export default [
2525
},
2626
},
2727
{
28-
ignores: ['dist/', 'eslint.config.js', './docs/','jest.config.ts'],
28+
ignores: [
29+
'dist/',
30+
'coverage/',
31+
'eslint.config.js',
32+
'./docs/',
33+
'jest.config.ts',
34+
],
2935
},
3036
];

jest.config.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,19 @@ const config = {
2929
testMatch: ['**/*.spec.ts', '**/*.integration.spec.ts'],
3030

3131
coverageProvider: 'v8',
32+
33+
coverageDirectory: '<rootDir>/coverage',
34+
35+
coverageReporters: ['text', 'lcov', 'clover', 'json'],
36+
37+
collectCoverageFrom: [
38+
'src/**/*.{ts,tsx}',
39+
'!src/**/*.d.ts',
40+
'!src/**/*.spec.ts',
41+
'!src/**/*.integration.spec.ts',
42+
'!src/shared/testing/**',
43+
'!src/server.ts',
44+
],
3245
};
3346

3447
export default config;

0 commit comments

Comments
 (0)