{"id":15285438,"url":"https://github.com/quentinroy/jest-transform-pug","last_synced_at":"2025-06-29T03:37:02.118Z","repository":{"id":29683596,"uuid":"122459776","full_name":"QuentinRoy/jest-transform-pug","owner":"QuentinRoy","description":"A Jest transform that compiles .pug files as template functions","archived":false,"fork":false,"pushed_at":"2024-04-23T04:22:41.000Z","size":136,"stargazers_count":1,"open_issues_count":17,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-19T18:22:08.148Z","etag":null,"topics":["jest","pug","template","transform"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/QuentinRoy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-22T09:52:37.000Z","updated_at":"2024-05-30T01:00:00.996Z","dependencies_parsed_at":"2023-09-28T21:29:40.366Z","dependency_job_id":"82cac2e8-b399-437c-83c5-5914182e8ce8","html_url":"https://github.com/QuentinRoy/jest-transform-pug","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuentinRoy%2Fjest-transform-pug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuentinRoy%2Fjest-transform-pug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuentinRoy%2Fjest-transform-pug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuentinRoy%2Fjest-transform-pug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QuentinRoy","download_url":"https://codeload.github.com/QuentinRoy/jest-transform-pug/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248657429,"owners_count":21140835,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jest","pug","template","transform"],"created_at":"2024-09-30T15:04:57.700Z","updated_at":"2025-06-29T03:37:02.105Z","avatar_url":"https://github.com/QuentinRoy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jest-transform-pug\n\n[![NPM](https://img.shields.io/npm/v/jest-transform-pug.svg)](https://www.npmjs.com/package/jest-transform-pug)\n\nA [Jest](https://github.com/facebook/jest) transform that compiles your\n[.pug](https://github.com/pugjs/pug) files as template functions just like your\npug loader would (e.g [rollup-plugin-pug](https://github.com/aMarCruz/rollup-plugin-pug)\nor [pug-loader](https://github.com/pugjs/pug-loader)).\n\n## Usage\n\n```\nnpm install jest-transform-pug --save-dev\n```\n\n## Setup\n\nDefine `jest-transform-pug` as a transformer for Jest, by adding\nthe following to your Jest configuration in your `package.json`:\n\n```json\n{\n  \"jest\": {\n    \"transform\": {\n      \"\\\\.(pug)$\": \"jest-transform-pug\"\n    }\n  }\n}\n```\n\nWarning, this would override default transforms automatically set up by jest.\nHence, if you rely on e.g., babel transpilation in your tests, you will need\nto set up babel jest as well:\n\n```json\n{\n  \"jest\": {\n    \"transform\": {\n      \"^.+\\\\.jsx?$\": \"babel-jest\",\n      \"\\\\.(pug)$\": \"jest-transform-pug\"\n    }\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquentinroy%2Fjest-transform-pug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquentinroy%2Fjest-transform-pug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquentinroy%2Fjest-transform-pug/lists"}