Changes
New features
- Support for defining constants, #69 (thanks @kevindqc)
- Case sensitive module validation, #71, #82 (thanks @sagiweis, @cyberhck, @pat154)
- Support for angular2-webpack-starter, #72 (thanks @michaeljota)
- Module aliases in the bundler,
karmaTypescriptConfig.bundlerOptions.resolve.alias
, #74 (thanks @Necroskillz) - Descriptive bundler validation error message, #74 (thanks @Bjeaurn, @jfeenstra)
- Coverage thresholds, #80, (thanks @melxx001)
- Option
karmaTypescriptConfig.coverageOptions.exclude
defaults to case insensitive - Option
karmaTypescriptConfig.coverageOptions.exclude
accepts either a RegExp object or an array of RegExp objects, #86 (thanks @sir-marc) - New Transforms API:
- Support for ES2015 (aka ES6), #87 (thanks @Necroskillz)
- Support for Angular2 components,
templateUrl
andstyleUrls
, #69 (thanks @kevindqc, @melxx001)
- New option for filtering which files should be executed in a test run,
karmaTypescriptConfig.bundlerOptions.entrypoints
- Clarified documentation on automatic bundling, #96 (thanks @sgen)
- Improved documentation on configuring for tests in separate folders, #102 (thanks @glennvorhes)
Bugfixes
- Values in tsconfig.compilerOptions.lib are parsed correctly, #60 (thanks @abdulhaq-e)
- Bundle entrypoints are run in correct order to avoid race conditions, #77, #83 (thanks @Necroskillz, @melxx001)
- Cannot find module 'process/browser' from ‘.’, #84, #105 (thanks @Belciu, @bmontgom, @chrisie, @youngmushroom, @michaelbull)
- Support for Typescript 2.2.1, #92, #94, #95 (thanks @jdanyow, @iainmcgin, @dnasir, @unlight, @typedefJorge, @sualko)
- Bundling mode is set by counting dependencies on startup, #93 (thanks @Dashiing, @tehvgg, @adamcogx)
- Directories are excluded when resolving dynamic dependencies, modules in
noParse
aren’t parsed by acorn, #104 (thanks @hadrien-toma)
Breaking changes
karmaTypescriptConfig.bundlerOptions.exclude
now excludes modules completely, #89, #75 (thanks @paibamboo)karmaTypescriptConfig.bundlerOptions.ignoredModuleNames has been replaced by
karmaTypescriptConfig.bundlerOptions.exclude`karmaTypescriptConfig.excludeFromCoverage
has been replaced bykarmaTypescriptConfig.coverageOptions.exclude
- ´karmaTypescriptConfig.disableCodeCoverageInstrumentation´ has been replaced by ´karmaTypescriptConfig.coverageOptions.instrumentation´
- If a path to a
tsconfig.json
file is specified in thekarmaTypescriptConfig.tsconfig
setting the directory of thetsconfig.json
file will be used as base path for the compiler instead of thebasePath
property in the Karma config, #92 (thanks @vidartf)
Dogfooding
- Sourcecode now in Typescript 🚀