Skip to content

A set of Jest unit tests, extracted from govuk-frontend, to ensure ports meet the same template tests

Notifications You must be signed in to change notification settings

penx/govuk-frontend-template-spec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

govuk-frontend-template-spec

A set of Jest unit tests, extracted from govuk-frontend, to ensure ports meet the same template tests.

Usage

npm install -d govuk-frontend-template-spec

See https://github.com/penx/govuk-frontend-react and search for govuk-frontend-template-spec for more details.

Where is the code?

If using the GitHub repository, the code is extracted from govuk-frontend by running npm run build. This is then included in the bundle when publishing to npm.

Why?

govuk-frontend provides templates using nunjucks. I'm creating a set of React components that aim to have feature parity with govuk-frontend and wanted to extract the govuk-frontend unit tests to validate this. This may also be useful for ports of the templates to other languages.

Also see:

About

A set of Jest unit tests, extracted from govuk-frontend, to ensure ports meet the same template tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published