Lack of intellisense in spec/test files in generated node app #18434
Labels
outdated
scope: node
Issues related to Node, Express, NestJS support for Nx
scope: testing tools
Issues related to Cypress / Jest / Playwright / Vitest support in Nx
type: bug
Current Behavior
When the application is generated, the tsconfig.spec.ts inside the app has the following code:
"include": [ "jest.config.ts", "src/**/*.test.ts", "src/**/*.spec.ts", "src/**/*.d.ts" ]
This makes it so TS doesn't know about .ts files for the sake of autocomplete and import suggestion.
Expected Behavior
Change it to:
"include": [ "jest.config.ts", "src/**/*.ts", "src/**/*.test.ts", "src/**/*.spec.ts", "src/**/*.d.ts" ]
This way test files will automatically have intellisense.
GitHub Repo
No response
Steps to Reproduce
nx g @nx/node:application <appname>
Nx Report
Failure Logs
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: