Commit Graph

17 Commits

Author SHA1 Message Date
Leon Bubova d62130b898 Feature/add unit testing framework and start writing unit tests (acceptance tests) (#708)
* add jest and rewire for testing

* wrap loose code for initMutationObserver() in function and call it instead of just executing it

Otherwise this code is executed everytime state.js is imported somewhere in a file.
This leads to not being able to test properly, since state.js is imported in a lot
of the src files and fails when running the tests since we are missing global environment
settings such as document, window etc in the jest environment.

* export roundDown and getNumberformatter to make them testable as well

* add basic acceptance tests for utils.js, create snapshots and add jest config

* add failing test for buggy behaviour in a separate test case and skip it until fixed

* Fixes after merge conflicts

---------

Co-authored-by: Dmitrii Selivanov <selivano.d@gmail.com>
2024-06-16 19:52:58 +02:00
Anarios 954e0a7caf package.json version bump 2024-04-18 14:05:58 +02:00
Anarios 2882cfd6e6 3.0.0.15 2024-04-18 09:28:18 +02:00
Anarios 0608077614 Prettier line width config 2024-01-16 01:04:11 +01:00
Moondarker 7da80768dd Implemented centralized versioning (#1016) 2024-01-15 09:10:35 +01:00
Anarios b133adeecb Prettier applied to whole project, prettier added to pre-commit hook 2024-01-15 01:39:46 +01:00
Anarios b6367ae334 3.0.0.13 release - dynamic selectors config loading from server added. 2023-12-04 11:04:14 +01:00
Suhail Khan f680bf6d81 Add Safari extension build target (#896) 2023-04-02 14:17:18 +02:00
Dmitrii Selivanov a43811f2d7 Webpack fixes 2022-01-08 22:59:18 +03:00
Laurenz1606 ee6125cce6 Fix linting in package.json 2022-01-06 17:52:11 +01:00
Front 58b718f02f fix production 2021-12-26 17:21:48 -05:00
Front 3cee9a4bfd fix development mode 2021-12-26 17:21:31 -05:00
Front c076eecbb5 fix compile issues 2021-12-26 17:18:27 -05:00
Dmitrii Selivanov d13aa3f051 Webpack fixes, build now builds both FF and chrome versions 2021-12-19 03:12:11 +03:00
Dmitrii Selivanov 1d33b7c5a2 Removed old files, temporary disabled webpack because it was not working 2021-12-17 19:57:47 +03:00
Leon Bubova c46065fdc0 rename bundle script to start with file watcher, create build script without watcher 2021-12-17 01:06:23 +01:00
Leon Bubova 7b9c1781b4 implement webpack and create scripts to bundle source 2021-12-15 10:14:17 +01:00