Question: I have a Typscript app and API. I wrote the below test per numerous Google searches and some examples found here on SO and other places. I see no issue in the test code. Googling `TypeError: chai.request is not a function`, so far is getting me now where. Do you see my error below? 

Thank you, thank you, thank you for any help :-)

[![enter image description here](https://i.stack.imgur.com/A6rVF.png)](https://i.stack.imgur.com/A6rVF.png)

Answer: 
I solved this by the following approach (Express.js with TypeScript)

```
import chai from 'chai';
import chaiHttp from 'chai-http';

chai.use(chaiHttp);

```

Hope it helps.

*Remember to install* **@types/chai** *and other type definition packages for the block above to work*
install from github

```
"devDependencies": {
    "chai-http": "git+https://github.com/chaijs/chai-http.git",
  },

```