jordanpowell88 / angular-ct

Angular Component Testing
19 stars 2 forks source link

feat(angular-dev-server): generate tsconfig dynamically #12

Closed jordanpowell88 closed 2 years ago

jordanpowell88 commented 2 years ago

This PR fixes an issue we had previously where the location of users component tests were being bundles as part of the angular dev server. This PR uses the users specPattern passed automatically in the config to dynamically generate a tsconfig.cy.json file in a temporary directory on the users filesystem and used to passed the instantiate the AngularWebpackPlugin in the webpack.config.ts