Users should be able to filter the table. They expressed that every column should include an input field where they could type their search. The table should then be filtered so that only rows that match the search term for the respective column are included.
Users should be able to sort every column of the table. If the user clicks the column title for the first time it should sort this column in ascending order. When an user clicks the same title again this should toggle between ascending and descending.
This project uses yarn
.
You can run the following command to install all dependencies.
yarn install
To see what you're building run the following command:
yarn start
It will start the dev-server and open a page in your default browser.
This project uses jest
as a test runner.
The tests are written using @testing-library/react
.
Also, we have enhanced the expects
with @testing-library/jest-dom
to give you some more explicit assertions.
You can run all tests with the following command:
yarn test
All data comes from ./src/data.json
.