sdk
sdk copied to clipboard
[jsinterop] implement mocking support for static JSInterop
JSInterop with @staticInterop
only supports dispatching code statically and doesn't support mocking logic by implementing a Dart interface. Instead, mocks need to be implemented at the JS layer.
This bug tracks progress towards support for js mocks. This includes:
- [ ] https://github.com/dart-lang/sdk/issues/49350
- [ ] ability to check whether a class conforms to the same API as a static extension
- [ ] ability to generate as a transform a JSObject exporting the mock class to JavaScript