Skip to content
This repository was archived by the owner on Oct 13, 2026. It is now read-only.

About

A simple test library to validate nunjucks templates used in Backstage software templates

Resources

Stars

0 stars

Watchers

2 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation

backstage-template-test

Warning

This repository has been retired and will no longer be maintained. It has been moved to redhat-developer/rhdh-backstage-template-test.

A simple test library to validate nunjucks templates used in Backstage software templates

This repository contains a basic testing library for the Nunjucks templates used in Backstage software templates. This library is written using the ts-jest and Nunjucks libraries.

Prerequisites

  • Node.js v18 or later
  • yarn

Running the sample tests

  1. yarn install
  2. yarn test

Using the testing library

  1. Run yarn add -D backstage-template-test to pull in the testing library to your project

  2. Describe test case and inputs, based on the format used by jest:

Image
  1. Add any necessary test data under the test folder as needed - if validating multiple files at once, ensure the test data file names match the templated file names

About

A simple test library to validate nunjucks templates used in Backstage software templates

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages