lathonez / clicker

Ionic 2 + @angular/cli Seed Project : Angular2 + Typescript + Karma + Protractor + Travis
http://lathonez.com/2018/ionic-2-unit-testing/
MIT License
430 stars 137 forks source link

issue regarding component testing #201

Closed ravizarekar007 closed 7 years ago

ravizarekar007 commented 7 years ago

i am going to test my component network-status created file network-status.spec.ts for it and imported component in it i get an below error how to fix it

// component network-status

import { ComponentFixture, async } from '@angular/core/testing';

TS Error The file "D:/AppsProject/apps/ionic/AppCore-v2/testing/network-status.spec.ts" is not included in the TypeScript compilation context. If this is not intended, please check the "files" or "filesGlob" section of your tsconfig.json file.at line 1 col 1


tsconfig.json

"include": [ "src//*.ts" ], "filesGlob": [ "*/.ts", "!node_modules//*" ],