Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(general): use relative import #1055

Merged
merged 1 commit into from
Feb 14, 2023

Conversation

Den-dp
Copy link
Contributor

@Den-dp Den-dp commented Feb 12, 2023

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[x] Refactoring (no functional changes, no api changes)

What is the current behavior?

The issue can be experienced only when switching your tsconfig.base paths to use dist instead of src (that is what I have tried to do in this repo while working on #1050), because in such case jest will not be able to import it (so this test fails)

What is the new behavior?

Using relative paths within the same project prevents circular self-dependency

Does this PR introduce a breaking change?

[ ] Yes
[x] No

@NetanelBasal
Copy link
Collaborator

@Den-dp the build is failing.

Using relative paths within the same project prevents circular self dependency.
It strikes when f.e. you configure your tsconfig.base to use `dist` instead of `src`,
because in such case `jest` will not be able to import it (so this test will fail)
@Den-dp Den-dp force-pushed the refactor/use-relative-import branch from d12a550 to e673136 Compare February 13, 2023 11:30
@Den-dp
Copy link
Contributor Author

Den-dp commented Feb 13, 2023

@NetanelBasal sure, was waiting for 5610f55 to be merged.

I've rebased it and now it's green

@NetanelBasal NetanelBasal merged commit dc91896 into salesforce:master Feb 14, 2023
@Den-dp Den-dp deleted the refactor/use-relative-import branch February 14, 2023 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants