djalim
4e220f72d7
style: format api mock return type and test imports/JSON body
2026-04-21 12:02:55 +02:00
djalim
61207e4f21
test: add mock DB helper for unit tests
...
Check Deno code / Check Deno code (pull_request) Failing after 39s
test: add tests for fixtures, mock fetch, mock db, and happy-dom
- Add comprehensive fixture shape tests.
- Expand mockFetch to support methods, status codes, and body tracking.
- Introduce getFetchCalls to inspect intercepted requests.
- Add mockDb helper for in-memory DB operations.
- Reorganize tests for clarity and coverage.
- Ensure happy-dom setup/cleanup works correctly.
2026-04-21 11:49:30 +02:00
djalim
204a590b37
refactor(test): improve fetch mock and update fixture types
...
Add support for HTTP methods, status codes, body and headers in the fetch
mock. Track calls and expose getFetchCalls for assertions. Update fixture
interfaces to use string IDs, add ImportResult and ApiError types, and
provide standard error constants. Adjust fixture data to match new types.
2026-04-21 11:31:45 +02:00
djalim
edb20db2ef
test: add e2e, integration, and unit tests for fixtures and mockFetch
2026-04-21 11:24:02 +02:00
djalim
56430f9991
test: add API mock, fixtures, and DOM helpers for tests
2026-04-21 11:23:21 +02:00
djalim
808bf8c9c7
ci: add test job to lint workflow and update deno.json
...
Add test script to deno.json
Add @std/assert, @std/testing, happy-dom dependencies
2026-04-21 11:22:09 +02:00
djalim
e111d5be28
Merge pull request ' 🐛 (Dockerfile): remove stray 'flag' argument from deno cache command' ( #6 ) from feature/deploy into main
...
Build and push image / Build Docker image (push) Successful in 20s
Reviewed-on: https://git.polytech.djalim.fr/admin/PolyMPR/pulls/6
2026-01-13 08:08:24 +00:00
djalim
c70d4a5f11
🐛 (Dockerfile): remove stray 'flag' argument from deno cache command
Check Deno code / Check Deno code (pull_request) Successful in 14s
2026-01-13 09:07:01 +01:00
djalim
ad5c271b05
Merge pull request 'feature/deploy : Added deploy ci tu automaticaly push image to registry' ( #5 ) from feature/deploy into main
...
Build and push image / Build Docker image (push) Failing after 1m35s
Reviewed-on: https://git.polytech.djalim.fr/admin/PolyMPR/pulls/5
2026-01-13 07:47:18 +00:00
djalim
19a588ac25
🚀 ci: add Docker build and push workflow, remove old Deno check workflow
Check Deno code / Check Deno code (pull_request) Successful in 16s
2026-01-13 08:45:23 +01:00
djalim
ad524978df
🔧 (ci.yml): renamed Deno lint workflow for pull requests
2026-01-09 12:57:51 +01:00
djalim
2ce78547b7
Merge pull request ' 🔧 chore(ci): removed old github workflow folder' ( #4 ) from fix/action into main
...
Reviewed-on: https://git.polytech.djalim.fr/admin/PolyMPR/pulls/4
2026-01-09 11:52:25 +00:00
djalim
81a3fc0e03
🔧 chore(ci): removed old github workflow folder
Check Deno code / Check Deno code (pull_request) Successful in 13s
2026-01-09 12:50:46 +01:00
djalim
2615961bf1
Merge pull request ' 🔧 ci: add Deno lint and format check workflow' ( #1 ) from feature/actions into main
...
Reviewed-on: https://git.polytech.djalim.fr/admin/PolyMPR/pulls/1
2026-01-09 11:48:18 +00:00
djalim
fb967e3af3
Merge pull request ' 🔧 chore: add env.template and load .env instead of .env.development.local' ( #2 ) from feature/dotenv into main
...
Reviewed-on: https://git.polytech.djalim.fr/admin/PolyMPR/pulls/2
2026-01-09 11:48:05 +00:00
djalim
c283a34784
🔧 ci: add Deno lint and format check workflow
Check Deno code / Check Deno code (pull_request) Successful in 5s
2026-01-09 12:47:36 +01:00
djalim
a48c616ecc
🔧 chore: add env.template and load .env instead of .env.development.local
Check Deno code / Check Deno code (pull_request) Successful in 5s
2026-01-09 12:47:11 +01:00
djalim
cd1149a23a
Merge pull request ' 🐛 (components): add missing button types and keys' ( #3 ) from fix/actions into main
...
Reviewed-on: https://git.polytech.djalim.fr/admin/PolyMPR/pulls/3
2026-01-09 11:44:17 +00:00
djalim
58c8ff56ba
🐛 (components): add missing button types and keys
...
Check Deno code / Check Deno code (pull_request) Successful in 40s
Add type="button" to the EditMobility and UploadStudents buttons
to prevent default form submission behavior.
Include a key prop on Student components in Promotion for stable list rendering.
2026-01-09 12:41:51 +01:00
Kevin FEDYNA
91f7b6c022
Merge pull request #39 from fedyna-k/PMPR-38
...
Added all files
2025-01-28 23:44:06 +01:00
Kevin FEDYNA
8f1088a0f8
Deno police
2025-01-28 23:43:36 +01:00
Kevin FEDYNA
ccbec884e8
Added all files
2025-01-28 23:41:10 +01:00
Kevin FEDYNA
a9a2f6f390
Merge pull request #36 from fedyna-k/PMPR-35
...
Pmpr 35
2025-01-28 18:38:17 +01:00
Kevin FEDYNA
4c54283bfd
Finalized students app
2025-01-28 10:03:20 +01:00
Kevin FEDYNA
e88045c952
Refactored students
2025-01-27 13:11:13 +01:00
Kevin FEDYNA
4ff76fdf6f
Added hidden admin only page prop effect
2025-01-27 10:39:42 +01:00
Kevin FEDYNA
1a784f8622
Merge pull request #32 from fedyna-k/PMPR-27
...
Pmpr 27
2025-01-25 10:49:09 +01:00
Kevin FEDYNA
1f3a723dbe
Merge branch 'main' into PMPR-27
2025-01-25 10:48:41 +01:00
Kevin FEDYNA
6d4d36e089
Fixed linting and formatting errors
2025-01-25 10:48:04 +01:00
Clayzxr
16b7579e10
Trying to make EditStudents works
2025-01-24 21:38:53 +01:00
Clayzxr
fcc0a4413c
Update student to have an ID
2025-01-24 20:48:33 +01:00
Clayzxr
c3d3354537
Trying to make EditMobility works
2025-01-24 19:46:53 +01:00
Clayzxr
f07b4dc616
Consult mobility working
2025-01-24 17:09:51 +01:00
Clayzxr
575f0df4bc
Fixing bugs
2025-01-24 16:23:47 +01:00
Clayzxr
a867f67fd9
Trying to fix DB mobility
2025-01-24 16:17:51 +01:00
Clayzxr
cc26ec9445
Trying to make mobility works
2025-01-22 22:45:34 +01:00
Clayzxr
b835495e15
Consult mobility (not working yet)
2025-01-22 17:06:42 +01:00
Clayzxr
4abf540558
Init mobility DB
2025-01-22 15:09:22 +01:00
Kevin FEDYNA
db3267667f
Merge pull request #31 from fedyna-k/PMPR-29
...
Pmpr 29
2025-01-22 14:51:35 +01:00
Kevin FEDYNA
6456529b7f
Added documentation for connect file
2025-01-22 14:48:00 +01:00
Kevin FEDYNA
5464077deb
Added compile task
2025-01-22 14:32:51 +01:00
Kevin FEDYNA
75a9591f6a
Added documentation on cli
2025-01-22 14:24:55 +01:00
Clayzxr
36c5c9cf39
Test to access student DB in other apps (working)
2025-01-22 11:35:47 +01:00
Kevin FEDYNA
8a5461827e
Optimized code and wrote documentation
2025-01-22 11:15:43 +01:00
Clayzxr
d767cb0898
Minor fix for DB (working)
2025-01-22 11:00:18 +01:00
Kevin FEDYNA
3ce1273455
Started documenting code
2025-01-22 00:54:43 +01:00
Kevin FEDYNA
54f4a83590
Merge pull request #30 from fedyna-k/PMPR-28
...
changed login and logout to adapt to domain and added ToU
2025-01-21 23:54:14 +01:00
Kevin FEDYNA
596ee0536a
formatted code
2025-01-21 23:53:43 +01:00
Kevin FEDYNA
5e75c688c8
Added layer of abstraction for database connection
2025-01-21 23:49:52 +01:00
Kevin FEDYNA
85766ffeed
changed login and logout to adapt to domain and added ToU
2025-01-21 22:31:36 +01:00