Could you elaborate on how you think that would work? I don’t think I understand module federation enough but at first glance it seems like it’s a way to load JS modules ‘on demand’, and my brain has a hard time matching that with how I understand contract testing, i.e., as a means of verifying that messages exchanged between a consumer and a provider can be consumed / produced.
I can see the consumer and provider in this case, but what would the messages / data be?
This isn’t criticism, this is me not understanding your case ;)