[id="serverless-testing-typescript-functions_{context}"] = Testing TypeScript functions TypeScript functions can be tested locally on your computer. In the default project that is created when you create a function using `kn func create`, there is a *test* folder that contains some simple unit and integration tests. .Procedure . If you have not previously run tests, install the dependencies first: + [source,terminal] ---- $ npm install ---- . Run the tests: + [source,terminal] ---- $ npm test ----