sdk icon indicating copy to clipboard operation
sdk copied to clipboard

[jsinterop] implement mocking support for static JSInterop

Open sigmundch opened this issue 2 years ago • 0 comments

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

sigmundch avatar Jun 27 '22 23:06 sigmundch