Commit Graph
10 Commits
Author SHA1 Message Date
Janne SavolainenandMikko Aspiala 8d0abcc9d5 Demonstrate naive way to make component not responsible of it's dependencies and not use global shared state
This is to make a step towards satisfaction of Dependency Inversion Principle. It's not fully satisfied because we still depend on concrete instances of classes instead of interfaces.

This will start chain of thought to pursue warm and friendly unit testing and introduction of SOLID principles.

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
2021-12-04 12:16:33 +02:00
Janne Savolainen f6a51d1ae7 Merge pull request #4338 from jansav/feature/injectable
Introduce a way to use injectables
2021-11-26 11:50:01 +02:00
Janne Savolainen 7b6a7059bf Move types of injectable and injectable-react to the library
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2021-11-26 07:44:35 +02:00
Janne Savolainen c9503c1d14 Allow asynchronous instances in injectable typing
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2021-11-26 07:44:30 +02:00
Janne Savolainen 0c0dfe5966 Make overriding injectable with a mock supported
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2021-11-26 07:44:30 +02:00
Janne Savolainen d07d9f9fd2 Update version of injectable library
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2021-11-26 07:44:30 +02:00
Janne Savolainen 0af1d08299 Fix linting in type definition
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2021-11-26 07:44:20 +02:00
Janne Savolainen c4c4bc5845 Introduce a way to use injectables for UI
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2021-11-26 07:44:17 +02:00
Janne SavolainenandMikko Aspiala e146dff9da Prefer ref over findDOMNode to make unit tests not flaky (#4372)
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
2021-11-17 11:38:42 -05:00
Janne Savolainen 262f471da8 Add default WebStorm configuration files (#4293)
Signed-off-by: Janne Savolainen <janne.savolainen@houston-inc.com>
2021-11-09 11:55:09 +02:00