After setting up jasmine typings in my project and saving them in the "index.d.ts" file, I encountered an issue when using expect('').toBeNaN
in my tests. Only "toBe" was being displayed, nothing more.
Below are the configuration files I am using:
tsconfig.json
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"emitDecoratorMetadata": true,
"experimentalDecorators": true
},
"filesGlob": [
"**/*.ts",
"!node_modules/**/*"
],
"include": [
"typings/index.d.ts"
],
"exclude": [
"node_modules",
"typings/main",
"typings/main.d.ts"
],
"compileOnSave": false,
"atom": {
"rewriteTsconfig": false
}
}
This is the content of my index.d.ts
/// <reference path="globals/jasmine-expect/index.d.ts" />
/// <reference path="globals/jasmine/index.d.ts" />
/// <reference path="globals/karma-jasmine/index.d.ts" />