You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Furthermore, since swc exclude uses Regex, there's no need to have both ./src/**/... and ./**/... variations of each excluded file extension.
Expected Behavior
The default swc options should be improved to exclude the file extensions listed above. They can also be simplified to remove the ./src variants, for example:
Current Behavior
The default options for the
exclude
option in.lib.swcrc
don't match the following test file extensions:.test.ts
.test.tsx
.spec.tsx
Here are the some of the default options for reference:
Furthermore, since swc exclude uses Regex, there's no need to have both
./src/**/...
and./**/...
variations of each excluded file extension.Expected Behavior
The default swc options should be improved to exclude the file extensions listed above. They can also be simplified to remove the
./src
variants, for example:(I left the
jest-setup.ts
values the same as these don't seem to be working)Steps to Reproduce
nx generate @nrwl/js:library --name=test-lib --compiler=swc
src/lib/tests/my-test.test.ts
nx build test-lib
my-test.test.ts
hasn't been excluded.Failure Logs
N/A
Environment
The text was updated successfully, but these errors were encountered: