At the moment named constant exports are just ignored:
export const foo = 'bar';
No rewire stubs are added for this export, so if you try import rewire$foo in your test, you get import is not defined error that is unexpected for plugin consumers.
The PR adds rewire stubs for named constant export . The generated stub function point out to the existing limitations.
At the moment named constant exports are just ignored:
No rewire stubs are added for this export, so if you try import
rewire$foo
in your test, you getimport is not defined
error that is unexpected for plugin consumers.The PR adds rewire stubs for named constant export . The generated stub function point out to the existing limitations.