Commit Graph

4 Commits

Author SHA1 Message Date
Andrew Nicolaou af1a5cc2f1
Use translations for all tests (#1568)
* Toolbar ARIA Labels
* Ensure all tests use real translations

All tests should import the 'test-utils' file which re-exports all of
the @testing-library functions. It wraps render() in a react-i18next
instance.

It's important that the component being tested is the one returned from
withTranslation().

Co-authored-by: ov <omar.verduga@gmail.com>
2020-08-26 14:19:34 +02:00
Andrew Nicolaou 8308eda7cf
Extract translation keys for Console, Sidebar, FileNode (#1549)
* Convert Console component to use translations

* Extracts Sidebar/FileNode to use English translations

* Mock react-i18next with real English translations
2020-08-19 10:40:05 +01:00
Andrew Nicolaou 9d55fa378a Use testing-library instead of enzyme for tests 2020-06-28 15:44:00 +02:00
Andrew Nicolaou 840e27b3fd Split client and server tests into separate Jest "projects"
- server tests now use the "node" jest environment, removing the
  mongoose warning
- both projects can use their own jest.setup.js file
2020-06-28 15:44:00 +02:00