1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00
Files
openshift-docs/modules/serverless-testing-typescript-functions.adoc
Maxim Svistunov 7dd561f457 Add docs on developing TypeScript functions
Fix section ID

Move TypeScript context object reference to the proper guide

Fix function header

Co-authored-by: Lance Ball <lball@redhat.com>

Fix another function header

Co-authored-by: Lance Ball <lball@redhat.com>

Improve wording

Co-authored-by: Lance Ball <lball@redhat.com>

Fix yet another function header

Co-authored-by: Lance Ball <lball@redhat.com>

Fix broken list

Add the step of installing dependencies

Substitute curl commands with kn func emit commands

Improve kn func emit examples

Several stylistic improvements

Make paragraph more precise

Co-authored-by: jrangelramos <jrangelramos@gmail.com>

Add a comma

Use updated TypeScript code examples

Co-authored-by: Lance Ball <lball@redhat.com>

Improvements to TypeScript code

Improve TypeScript code

Co-authored-by: jrangelramos <jrangelramos@gmail.com>
2021-09-01 16:30:44 +00:00

21 lines
507 B
Plaintext

[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
----