Commit Graph

32 Commits

Author SHA1 Message Date
MartinBraquet
34a13458db Fix unit tests 2026-03-09 12:37:46 +01:00
MartinBraquet
2d5690cea2 Add message count to stats 2026-03-07 12:42:57 +01:00
MartinBraquet
f4d8822dbe Fix CI 2026-03-07 00:17:38 +01:00
MartinBraquet
0655266366 Move avatar URL and is-banned to separate columns and social links to profiles table 2026-03-06 23:51:49 +01:00
MartinBraquet
205354c6c4 Fix CI 2026-03-05 20:23:47 +01:00
MartinBraquet
cb8ef458c2 Fix CI 2026-03-05 19:53:36 +01:00
MartinBraquet
d979a81b95 Fix jest tests 2026-03-05 19:32:45 +01:00
MartinBraquet
dcacf98ea3 Collapse the 3 onboarding API calls into 1 2026-03-04 15:22:36 +01:00
MartinBraquet
aa7e32cb77 Fix wording 2026-03-02 15:58:10 +01:00
MartinBraquet
46aba5dc8d Fix test for create channel 2026-02-24 19:59:32 +01:00
MartinBraquet
8decdab0c3 Refactor notification tests to improve assertions and add locale support 2026-02-24 00:01:39 +01:00
MartinBraquet
23a8aa6712 Refactor avatar URL assignment and simplify user retrieval in create-user logic 2026-02-23 14:58:45 +01:00
MartinBraquet
e305fba93d Add reason tracking for user deletion in unit tests 2026-02-22 18:20:15 +01:00
Martin Braquet
ba9b3cfb06 Add pretty formatting (#29)
* Test

* Add pretty formatting

* Fix Tests

* Fix Tests

* Fix Tests

* Fix

* Add pretty formatting fix

* Fix

* Test

* Fix tests

* Clean typeckech

* Add prettier check

* Fix api tsconfig

* Fix api tsconfig

* Fix tsconfig

* Fix

* Fix

* Prettier
2026-02-20 17:32:27 +01:00
MartinBraquet
6be69b74e8 Fix user notif test 2026-02-19 12:23:15 +01:00
MartinBraquet
8b094769e4 Apply sqlmatch 2026-02-18 13:43:25 +01:00
MartinBraquet
fc6628be08 Refactor unit tests to use sqlMatch for SQL query assertions 2026-02-17 22:37:32 +01:00
MartinBraquet
07ce2780c6 Refactor user profile handling by removing deprecated fields and improving link management 2026-02-17 22:02:47 +01:00
MartinBraquet
2d5184a0ee Fix: update avatar pic to be the same as pinned profile pic 2026-02-13 00:28:06 +01:00
MartinBraquet
1d2a2beb7a Fix 2026-02-12 23:46:11 +01:00
MartinBraquet
60dba612ba Fix tests 2026-02-12 23:37:42 +01:00
MartinBraquet
85ceee0b0d Fix unit test 2026-02-11 22:36:26 +01:00
MartinBraquet
152ed99727 Fix test 2 2026-01-26 23:32:21 +01:00
MartinBraquet
a48633a074 Fix test 2026-01-26 23:17:52 +01:00
MartinBraquet
d59961f6cc Fix test 2026-01-25 22:47:53 +01:00
Okechi Jones-Williams
449b32d4bc Adding/Updating API unit tests (#26) 2026-01-15 16:54:29 +01:00
Okechi Jones-Williams
7b61c70f6d Add more API endoints unit tests (#25)
* setting up test structure

* .

* added playwright config file, deleted original playwright folder and moved "some.test" file

* continued test structure setup

* Updating test folder structure

* Added database seeding script and backend testing folder structure

* removed the database test

* Replaced db seeding script

* Updated userInformation.ts to use values from choices.tsx

* merge prep

* removing extra unit test, moving api test to correct folder

* Pushing to get help with sql Unit test

* Updating get-profiles unit tests

* Added more unit tests

* .

* Added more unit tests

* Added getSupabaseToken unit test

* .

* excluding supabase token test so ci can pass

* .

* Seperated the seedDatabase func into its own file so it can be accessed seperatly

* Fixed failing test

* .

* .

* Fix tests

* Fix lint

* Clean

* Fixed module paths in compute-score unit test

* Updated root tsconfig to recognise backend/shared

* Added create comment unit test

* Added some unit tests

* Working on createProfile return issue

* .

* Fixes

* Updated Create profile unit test

* Updating create user unit test

* Add create-user unit tests

* .

* Added more unit tests

* Added more unit tests

* .

* Apply suggestion from @MartinBraquet

* .

* Added unit tests

* Added unit tests

---------

Co-authored-by: MartinBraquet <martin.braquet@gmail.com>
2026-01-08 12:52:49 +02:00
Okechi Jones-Williams
87059494a3 Add unit tests for continue in /create-profile (#24)
* setting up test structure

* .

* added playwright config file, deleted original playwright folder and moved "some.test" file

* continued test structure setup

* Updating test folder structure

* Added database seeding script and backend testing folder structure

* removed the database test

* Replaced db seeding script

* Updated userInformation.ts to use values from choices.tsx

* merge prep

* removing extra unit test, moving api test to correct folder

* Pushing to get help with sql Unit test

* Updating get-profiles unit tests

* Added more unit tests

* .

* Added more unit tests

* Added getSupabaseToken unit test

* .

* excluding supabase token test so ci can pass

* .

* Seperated the seedDatabase func into its own file so it can be accessed seperatly

* Fixed failing test

* .

* .

* Fix tests

* Fix lint

* Clean

* Fixed module paths in compute-score unit test

* Updated root tsconfig to recognise backend/shared

* Added create comment unit test

* Added some unit tests

* Working on createProfile return issue

* .

* Fixes

* Updated Create profile unit test

* Apply suggestion from @MartinBraquet

---------

Co-authored-by: MartinBraquet <martin.braquet@gmail.com>
2026-01-06 13:04:07 +02:00
Okechi Jones-Williams
28ce878b34 Add API unit tests for create-* endpoints (#23)
* setting up test structure

* .

* added playwright config file, deleted original playwright folder and moved "some.test" file

* continued test structure setup

* Updating test folder structure

* Added database seeding script and backend testing folder structure

* removed the database test

* Replaced db seeding script

* Updated userInformation.ts to use values from choices.tsx

* merge prep

* removing extra unit test, moving api test to correct folder

* Pushing to get help with sql Unit test

* Updating get-profiles unit tests

* Added more unit tests

* .

* Added more unit tests

* Added getSupabaseToken unit test

* .

* excluding supabase token test so ci can pass

* .

* Seperated the seedDatabase func into its own file so it can be accessed seperatly

* Fixed failing test

* .

* .

* Fix tests

* Fix lint

* Clean

* Fixed module paths in compute-score unit test

* Updated root tsconfig to recognise backend/shared

* Added create comment unit test

* Added some unit tests

* Working on createProfile return issue

* .

* Fixes

---------

Co-authored-by: MartinBraquet <martin.braquet@gmail.com>
2025-12-12 10:34:07 +02:00
Okechi Jones-Williams
ab612a3eca Add backend API unit tests (#21)
* setting up test structure

* .

* added playwright config file, deleted original playwright folder and moved "some.test" file

* continued test structure setup

* Updating test folder structure

* Added database seeding script and backend testing folder structure

* removed the database test

* Replaced db seeding script

* Updated userInformation.ts to use values from choices.tsx

* merge prep

* removing extra unit test, moving api test to correct folder

* Pushing to get help with sql Unit test

* Updating get-profiles unit tests

* Added more unit tests

* .

* Added more unit tests

* Added getSupabaseToken unit test

* .

* excluding supabase token test so ci can pass

* .

* Seperated the seedDatabase func into its own file so it can be accessed seperatly

* Fixed failing test

* .

* .

* Fix tests

* Fix lint

* Clean

---------

Co-authored-by: MartinBraquet <martin.braquet@gmail.com>
2025-11-30 00:03:16 +01:00
Okechi Jones-Williams
6b11e6b060 Add minor changes to tests (#20)
* setting up test structure

* .

* added playwright config file, deleted original playwright folder and moved "some.test" file

* continued test structure setup

* Updating test folder structure

* Added database seeding script and backend testing folder structure

* removed the database test

* Replaced db seeding script

* Updated userInformation.ts to use values from choices.tsx

* merge prep

* removing extra unit test, moving api test to correct folder
2025-11-15 15:35:45 +01:00
MartinBraquet
8928cd1667 Update test structure 2025-11-15 00:14:12 +01:00