Monorepo with babel aliases support #3264
Unanswered
yuriy-yarosh
asked this question in
Q&A
Replies: 1 comment 3 replies
-
At least I've noticed that aliased imports are working correctly only for the current package. Maybe ava.js has something similar to |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using ava with
babel-preset-typescript
and a set of path aliases for monorepo, e.g.@org/testing-common/src/Common.ts
totesting-common/Common.ts
aliasing.ava.config.cjs
Both
@ava/typescript
and plain babel register results with the same error.Register.js
.babelrc
with a custom expo preset and an alias resolver.With aliased imports for tests
I'm always getting
But relative imports for my ava test files work just fine
Everything else everywhere is aliased.
My ava config doesn't work without a custom
@babel/register
- using@ava/typescript
config only givesBeta Was this translation helpful? Give feedback.
All reactions