Replies: 1 comment 2 replies
-
Converted to discussion, this is not a Capacitor issue but a problem with your mocks/configuration. I can't help you with that, I guess you already checked https://capacitorjs.com/docs/guides/mocking-plugins? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Bug Report
Capacitor Version
Platform(s)
web
Current Behavior
I'm trying to unit test my code with Karma Jasmine but whatever I'm using (spyon / spyonObject / returnValue etc..) I get this error : "Statusbar plugins is not implemented on web"
I have tried mock from mock/@capacitor but I get other issues
./mocks/@capacitor/status-bar:4:18 - Error: Module parse failed: Unexpected token (4:18)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|
| export const StatusBar = {
Expected Behavior
My test passes
Code Reproduction
Other Technical Details
npm --version
output:node --version
output:pod --version
output (iOS issues only):Additional Context
Beta Was this translation helpful? Give feedback.
All reactions