Commit Graph

10 Commits

Author SHA1 Message Date
Nathan Vasse
7dcf08d308 🤡(react) add HTMLDialog mock
As JestDOM does not mock this element, we need to do it in order to
make Modal work in test environement.
2024-02-05 15:23:03 +01:00
Nathan Vasse
9e0f7c5ef4 🤡(react) add Animate API
The jest-dom by default does not mock the Animate API, as the Toast
use it we need to mock it.
2024-01-05 16:38:09 +01:00
Nathan Vasse
468c8161eb 📝(react) add RHF examples
Rework a bit the recent work made on RHF example to make some component
more generic, such as RhfSelect and RhfDatepicker, which is based on a
design using RHF context hooks to provide a seamless integration.

Fixes #144
2023-09-05 11:15:51 +02:00
jbpenrath
151382dec2 ⬆️(frontend) migrate to testing-library/jest-dom 6.0.0
The new version of `testing-library/jest-dom` now offers several modules
 to extend vitest interface. We have to update the import path to extend
 vitest dom interface.
2023-08-21 15:33:50 +02:00
jbpenrath
944370cc02 🔧(react) enforce to use UTC timezone in our test
Currently, the timezone used in test depends to the local environment
that is weird. So we enforce the use of UTC timezone in our tests.
2023-08-11 17:10:57 +02:00
Romain Le Cellier
b72d0d5c90 (react) react-hook-form Input example
Our form elements needs to be usable with react-hook-form
2023-08-07 16:25:00 +02:00
Nathan Vasse
d85f9edac8 🚨(lint) update file for prettier 3.0.0
Prettier 3.0.0 comes with new standards so we need to upgrade our files
to comply with it.
2023-07-18 16:59:39 +02:00
Nathan Vasse
559c1e2cb7 (react) add jest-dom dependency
We want to be able to use convenience methods like "toBeInTheDocument".
2023-04-25 11:28:32 +02:00
Nathan Vasse
994d42578e (react) add DataGrid, SimpleDataGrid components
The DataGrid component can be considered as the core one, which provides
a full controlled component, but more complicated than SimpleDataGrid
which is based on DataGrid. SimpleDataGrid is intended to give a simple
ready-to-use data grid for client side data for example.
2023-03-28 12:00:27 +02:00
Nathan Vasse
be1c9d000b (react) add tokens.ts files handling
These files will be used to define the custom design tokens per components.
They are automatically aggregated by the packages/react/cunningham.ts file,
this is why handling typescript config file was important.
2023-01-11 11:01:56 +01:00