You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi guys, I'm working in a project now using the Sparatacus, I found this library and I thought was promising but I was not able to get working yet, following the documentation but when I add the library to the project but not all the files listed that would change after that did not change I got the angular.json modified and the mockServiceworker.js only is that ok ? One more question is when I want to use one of the handles and mock data OOTB made by you guys, there is a service class or something to me point to in my feature to know that rather make the original request to the server then call the mock. The last thing I noticed even after added MockConfig on my main.ts I still not getting the [MSW] Mocking enabled when I'm running the spartacus project. Thank you so much.
The text was updated successfully, but these errors were encountered:
Did you run ng add @valantic/spartacus-mock? Did it show any errors in the console?
We have just published version 3.1.0 of spartacus-mock, working with the latest mws version, spartacus 6.7.0 and angular 15. The latest version adds more automatically generated files to help you getting started.
If the schematics (running ng add @valantic/spartacus-mock) do not work for you, you can aswell just run npm i -d @valantic/spartacus-mock@3.1.0 to install it and then copy / create the files manually.
Hi guys, I'm working in a project now using the Sparatacus, I found this library and I thought was promising but I was not able to get working yet, following the documentation but when I add the library to the project but not all the files listed that would change after that did not change I got the angular.json modified and the mockServiceworker.js only is that ok ? One more question is when I want to use one of the handles and mock data OOTB made by you guys, there is a service class or something to me point to in my feature to know that rather make the original request to the server then call the mock. The last thing I noticed even after added MockConfig on my main.ts I still not getting the [MSW] Mocking enabled when I'm running the spartacus project. Thank you so much.
The text was updated successfully, but these errors were encountered: