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-nodejs-functions.adoc

18 lines
502 B
Plaintext
Raw Normal View History

2021-05-14 14:13:01 -05:00
// Module included in the following assemblies
//
// * /serverless/functions/serverless-developing-nodejs-functions.adoc
[id="serverless-testing-nodejs-functions_{context}"]
= Testing Node.js functions
Node.js 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
* Run the tests:
+
[source,terminal]
----
$ npm test
----