I use ionic2 app with TypeScript, jasmine and Karma
I have configurate karma:
{
“compilerOptions”: {
“allowSyntheticDefaultImports”: true,
“declaration”: false,
“emitDecoratorMetadata”: true,
“experimentalDecorators”: true,
“lib”: [
“dom”,
“es2015”
],
“module”: “es2015”,
“moduleResolution”: “node”,
“sourceMap”: true,
“target”: “es5”,
“types”: [
“jasmine”
]
},
“include”: [
“src//*.ts"
],
“exclude”: [
“node_modules”
,"src//*.spec.ts”
],
"compileOnSave": false,
"atom": {
"rewriteTsconfig": false
}
, "suppressImplicitAnyIndexErrors": true
}
when I start karma, it work perfectly.
But I have a problem when I serve project ( typescript error cannot find type definition for ‘jasmine’)