Skip to content

Domains test/ change import#2521

Open
JIOjosBG wants to merge 2 commits into
v2from
fix/barrel-import-domains-test
Open

Domains test/ change import#2521
JIOjosBG wants to merge 2 commits into
v2from
fix/barrel-import-domains-test

Conversation

@JIOjosBG

@JIOjosBG JIOjosBG commented Jul 3, 2026

Copy link
Copy Markdown
Member

Part of https://github.com/AmbireTech/ambire-app/pull/7454

Tests used to run with tslib v1 but since we are removing node_modules from ambire-common, the default tslib in ambire-app that ends up being used is v2.

The exported values that are imported from the barrel file (index) are exported via getters in the compiled code (with tslib v2), which prevents jest from doing spyOn.

The fix is to import those values from the original file rather than the index file
This fix is preferred over fixing the ambire-app tslib version to 1 instead of 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants