Simple POC for jsonnet unit testing.
Requires jsonnet, jsonnetfmt, jsonnet-lint, jb and make tools.
Makefile- build configuration formakejsonnetfile.json- dependency configuration for jsonnet bundler (jb)lib/utils.libsonnet- library that exposes a single utility methodlib/utils_test.jsonnet- jsonnet file that defines the unit tests for the utility method
Checkout the repository (git clone) and in the repository root run make and
see magic happening...
Feel free to modify files to introduce linter, formatting or test issues and check the behavior.