preboot / angular-webpack

A complete, yet simple, starter for Angular v2+ using webpack
MIT License
1.29k stars 556 forks source link

e2e using TypeScript #276

Open greglarson opened 7 years ago

greglarson commented 7 years ago

How can the configuration be changed to support *.e2e-spec.ts files? All e2e tests are js not ts.

Thanks.

bhargav-sae commented 7 years ago

You can write e2e-spec.ts tests and transpile all e2e-spec.ts to e2e-spec.js files. And current configuration should work. All you need to do is before running e2e test transpile all typescript files to the JS files.

joewoodhouse commented 7 years ago

I can't get this to work, any more detailed instructions you could provide? I've tried just simply creating a new file i.e. home-in-typescript.component.spec.ts but it isn't picked up when I run npm run e2e

Foxandxss commented 7 years ago

It is not as easy as that. I will see how easy is to port what we did for angular.io, we use TS there for e2e.