lundi 18 novembre 2019

How compile TypeScript with unexist method in class for TDD?

I try to test my code using tdd approach. Every time then i create test for unexist method i get an error, for example: TSError: ⨯ Unable to compile TypeScript: error TS2339: Property '_get_model' does not exist on type 'Controller'. It's true, doesn't exist. But how i can do tdd if compiler refuses to work?

For tests i using only ts, ts-node, @types/mocha, @types/chai

Aucun commentaire:

Enregistrer un commentaire