I'm not sure what you mean by keep components as simple as possible.
Basically local storage is hydrated to stores and the stores are imported to my components. That's the recommended way for a svelte app.
I'm not 100% what I even need to test.
TBH early on I was able to implement cypress. And I did something people don't recommend, but worked for me, which was to load the app and step through it in code. This at least verified for me that things like first time setup would run. Problem was that to test any work-flow each test case would have to initially run the "first time setup" and then next test the workflow I wanted.
Unfortunately I installed an npm package (Monaco_Editor) that I need and it seems to have broke cypress and now I'm stuck with a generic cypress error and no test will run at all.
This leaves me with no avenue for support. Cypress points to Svelte or Monaco-Editor, Monaco-Editor is going to point to the other two.
It's just a mess.
I decided to try and scrap cypress and just try and test the components themselves opposed to a "workflow". But I don't think that's possible... I might look into just testing the stores themselves without the components because they do drive the app. Any suggestion on how I can do that or where I would look to find out?
I completely missed your reply π€¦ββοΈ Itβs over a month later now -- let me know if youβve made any more progress.
If all your business logic is in stores then itβd be perfectly reasonably to not test components at all, or just have a few end-to-end tests rather than unit tests.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hey thanks for the response.
I'm not sure what you mean by keep components as simple as possible.
Basically local storage is hydrated to stores and the stores are imported to my components. That's the recommended way for a svelte app.
I'm not 100% what I even need to test.
TBH early on I was able to implement cypress. And I did something people don't recommend, but worked for me, which was to load the app and step through it in code. This at least verified for me that things like first time setup would run. Problem was that to test any work-flow each test case would have to initially run the "first time setup" and then next test the workflow I wanted.
Unfortunately I installed an npm package (Monaco_Editor) that I need and it seems to have broke cypress and now I'm stuck with a generic cypress error and no test will run at all.
This leaves me with no avenue for support. Cypress points to Svelte or Monaco-Editor, Monaco-Editor is going to point to the other two.
It's just a mess.
I decided to try and scrap cypress and just try and test the components themselves opposed to a "workflow". But I don't think that's possible... I might look into just testing the stores themselves without the components because they do drive the app. Any suggestion on how I can do that or where I would look to find out?
Thanks again.
I completely missed your reply π€¦ββοΈ Itβs over a month later now -- let me know if youβve made any more progress.
If all your business logic is in stores then itβd be perfectly reasonably to not test components at all, or just have a few end-to-end tests rather than unit tests.