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

Cannot import @compiled/utils from within @compiled/jest source code #1668

Open
dddlr opened this issue May 9, 2024 · 0 comments
Open

Cannot import @compiled/utils from within @compiled/jest source code #1668

dddlr opened this issue May 9, 2024 · 0 comments
Labels
chore 🧹 It's something tedious

Comments

@dddlr
Copy link
Collaborator

dddlr commented May 9, 2024

Follow-up to #1667

We cannot import any functions defined within @compiled/utils (packages/utils/) from within @compiled/jest (packages/jest/), as the TypeScript setup (with rootDir etc) would break when running yarn build. As a result, we have an extra file packages/jest/src/utils.ts that essentially just duplicates the functions defined in packages/utils/.

This is less than ideal from a maintenance perspective - would be good to be able to de-duplicate this and use @compiled/utils directly.

@dddlr dddlr added the chore 🧹 It's something tedious label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore 🧹 It's something tedious
Projects
None yet
Development

No branches or pull requests

1 participant