SierraNL / webpack-typescript-jasmine

Basic example of creating jasmine unittests in typescript while using webpack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Combining Typescript, Webpack, Jasmine

After reading the following question on stackoverflow.com: http://stackoverflow.com/questions/42585255/how-to-run-typescript-not-angularjs-unit-tests-with-jasmine-and-webpack

I figured, this shouldn't be to hard. And well, it kinda was.

But it's working, so that's why I'm sharing this.

The key to this was this comment: codymikol/karma-webpack#188 (comment)

That is why karma couldn't see the *.ts files

To run the app with node: npm start

To run the unittests using karma -> jasmine npm test

Build status

About

Basic example of creating jasmine unittests in typescript while using webpack

License:MIT License


Languages

Language:JavaScript 74.2%Language:Dockerfile 9.7%Language:TypeScript 8.4%Language:HTML 7.0%Language:SCSS 0.7%