Open saschanaz opened 1 year ago
Well, there are no direct unit tests of components, but there are E2E tests for the client in cypress/
Good point, changing the title.
Does this mean testing each Vue component?
If so, I don't know because I have never written unit tests for Vue, but I feel it would be a difficult task since many components rely on global state.
I'd start with splitting some Jest-runnable subfeatures used by Vue components and testing them, e.g. image compression configuration function I added in #9334, rather than testing full Vue components themselves. Such thing should be easier with Cypress I guess.
Related to #10336
でもそれはそれとしてグローバルステートはストアとかは良いけど Web API (HTTP API じゃない方) の直接依存は剥がしたい
I'd like to add some tests since there's no tests AFAICT.