We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We use tsconfig paths to remap locations when debugging our libraries in unit tests:
... "paths": { "my-library": [ "path-to-my-library" ] } ...
Unfortunately, the files from my-library are not being watched by karma when running unit tests.
my-library
In karma.conf.js we have configured esbuild as follows:
karma.conf.js
... files: [ 'src/**/*.spec.ts', ], preprocessors: { 'src/**/*.ts': ['esbuild'], }, esbuild: { tsconfig: 'path-to-tsconfig/tsconfig.spec.json', }, ...
When using esbuild --watch to bundle the files, the paths specified in tsconfig are respected and a rebuild is triggered on any change.
esbuild --watch
tsconfig
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We use tsconfig paths to remap locations when debugging our libraries in unit tests:
Unfortunately, the files from
my-library
are not being watched by karma when running unit tests.In
karma.conf.js
we have configured esbuild as follows:When using
esbuild --watch
to bundle the files, the paths specified intsconfig
are respected and a rebuild is triggered on any change.The text was updated successfully, but these errors were encountered: