Commit Graph

28 Commits

Author SHA1 Message Date
Robin
5eaabcf74d
Clean up our tests in preparation for the testing sprint (#2466)
* Fix coverage reporting

Codecov hasn't been working recently because Vitest doesn't report coverage by default.

* Suppress some noisy log lines

Closes https://github.com/element-hq/element-call/issues/686

* Store test files alongside source files

This way we benefit from not having to maintain the same directory structure twice, and our linters etc. will actually lint test files by default.

* Stop using Vitest globals

Vitest provides globals primarily to make the transition from Jest more smooth. But importing its functions explicitly is considered a better pattern, and we have so few tests right now that it's trivial to migrate them all.

* Remove Storybook directory

We no longer use Storybook.

* Configure Codecov

Add a coverage gate for all new changes and disable its comments.

* upgrade vitest

---------

Co-authored-by: Timo <toger5@hotmail.de>
2024-08-27 15:45:39 +02:00
Robin
3be3a32f3d Update TypeScript target to match matrix-js-sdk
And work around https://github.com/microsoft/TypeScript/issues/55132
2024-07-24 11:07:46 -04:00
fkwp
ed6f02ac56 add manually import resolution for livekit-client/dist/src/room/track/TrackPublication 2024-05-27 08:54:50 +00:00
fkwp
e9e79f8ec3 use correct path 2024-03-21 08:57:17 +00:00
fkwp
88471f1462 typo 2024-03-20 13:10:44 +00:00
fkwp
9b8088fb43 protocol is now own npm package 2024-03-20 13:04:01 +00:00
fkwp
8e950e7c0a protocol is now own npm package 2024-03-20 12:58:54 +00:00
Robin
c97b967b48 Fix types 2024-02-15 23:22:15 -05:00
Angel Mendez Cano
bd9fbc9422 Merge remote-tracking branch 'upstream/livekit' into refactor/replace-jest-with-vitest 2024-02-09 16:22:34 -06:00
Robin
028861cb7b Format code 2024-02-09 11:04:01 -05:00
Angel Mendez Cano
2a9f6663c1 feat: add vitest configuration file
- add vitest configuration
- update tsconfig.json so that test files does not throw error
with global definitions such as expect, test
2024-02-02 18:54:50 -06:00
Robin
fe4bd32fcd Format code 2024-01-18 14:58:45 -05:00
Michael Telatynski
548d2e4d63
Wire up typescript safety net around i18next 2023-11-17 12:26:25 +00:00
Robin
a7624806b2 Upgrade eslint-plugin-matrix-org to 1.2.1
This upgrade came with a number of new lints that needed to be fixed across the code base. Primarily: explicit return types on functions, and explicit visibility modifiers on class members.
2023-09-22 18:07:06 -04:00
Daniel Abramov
7f9157bae1 Fix lint errors that originate from JS SDK 2023-07-11 16:02:58 +01:00
Daniel Abramov
0105162ffa Enable strict lints
An attempt to fix https://github.com/vector-im/element-call/issues/1132
2023-07-11 16:02:58 +01:00
Robin Townsend
17450b4531 Fix big grid crashing due to missing React import
by fixing the cause rather than the symptom: this upgrades the code to use the new, recommended JSX transform mode of React 17+, which no longer requires you to import React manually just to write JSX.
2023-06-30 18:21:18 -04:00
Robin Townsend
90ef5505bb Apply Prettier to the entire project
This ensures that our tests will be formatted by Prettier, among other things.
2022-12-09 14:34:25 -05:00
Šimon Brandner
fcaa126147
Add jest
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2022-10-26 13:21:06 +02:00
Robin Townsend
f0d7d8fac6 Enable strict mode checks with typescript-strict-plugin
No CI checks at this time, the only effect this will have is adding IDE errors.
2022-09-15 08:31:24 -04:00
Timo
2d99acabe2
typescript src/room (#437) 2022-08-02 00:46:16 +02:00
David Baker
a05501a909 Convert matrix-utils to typescript 2022-05-30 10:09:13 +01:00
David Baker
04780ab7aa Seems we can turn noUnusedLocals on after all 2022-05-10 18:12:10 +01:00
David Baker
446fd9c7c0 Make tsc happy with the js-sdk 2022-05-07 19:02:54 +01:00
David Baker
f805f4ead6 Remove some unnecessary tsconfig bits 2022-05-06 22:44:03 +01:00
David Baker
4488947eed Initial round of typescripting 2022-05-06 11:32:09 +01:00
Robert Long
3ee4058dce Remove unnecessary typescript config 2022-01-18 15:16:10 -08:00
Robert Long
5e4736eba5 Update to use matrix-react-sdk 2021-09-29 14:34:29 -07:00