{"id":24184583,"url":"https://github.com/bonejon/angular-jest-wallabyjs","last_synced_at":"2026-04-13T21:31:23.670Z","repository":{"id":38763372,"uuid":"185375138","full_name":"bonejon/angular-jest-wallabyjs","owner":"bonejon","description":"An example repository with all the configuration to use Angular 7 with Jest and WallabyJs. The readme.md contains the steps taken to convert the project from a standard angular-cli project.","archived":false,"fork":false,"pushed_at":"2023-01-07T05:17:06.000Z","size":3436,"stargazers_count":1,"open_issues_count":20,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-10T00:05:29.725Z","etag":null,"topics":["angular-cli","angular7","angular8","jest","sample-project","unit-testing","wallaby","wallabyjs"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bonejon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-07T10:00:46.000Z","updated_at":"2020-04-16T14:26:38.000Z","dependencies_parsed_at":"2022-08-24T05:31:32.305Z","dependency_job_id":null,"html_url":"https://github.com/bonejon/angular-jest-wallabyjs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bonejon/angular-jest-wallabyjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonejon%2Fangular-jest-wallabyjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonejon%2Fangular-jest-wallabyjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonejon%2Fangular-jest-wallabyjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonejon%2Fangular-jest-wallabyjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bonejon","download_url":"https://codeload.github.com/bonejon/angular-jest-wallabyjs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonejon%2Fangular-jest-wallabyjs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31771798,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["angular-cli","angular7","angular8","jest","sample-project","unit-testing","wallaby","wallabyjs"],"created_at":"2025-01-13T10:16:00.888Z","updated_at":"2026-04-13T21:31:23.608Z","avatar_url":"https://github.com/bonejon.png","language":"TypeScript","readme":"# An Example Project to Incorporate Jest and WallabyJS with Angular CLI\n\n[![Build Status](https://travis-ci.com/bonejon/angular-jest-wallabyjs.svg?branch=master)](https://travis-ci.com/bonejon/angular-jest-wallabyjs)\n\nThis project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.3.8.\n\n\n## Steps to get it working\n\n1 - Remove the following entries from devDependencies in package.json\n```json\n\"@types/jasmine\": \"???\",\n\"@types/jasminewd2\": \"???\",\n\"jasmine-core\": \"~???\",\n\"jasmine-spec-reporter\": \"???\",\n\"karma\": \"???\",\n\"karma-chrome-launcher\": \"???\",\n\"karma-coverage-istanbul-reporter\": \"???\",\n\"karma-jasmine\": \"???\",\n\"karma-jasmine-html-reporter\": \"???\",\n\"protractor\": \"???\",\n```\n\n2 - Add the following entries to devDependencies in package.json\n```json\n\"@angular-builders/jest\": \"^8.0.3\",\n\"@types/jest\": \"^24.0.11\",\n\"jest\": \"^24.8.0\",\n\"jest-html-reporter\": \"2.5.0\",\n\"jest-preset-angular\": \"^7.1.1\",\n\"wallaby-webpack\": \"^3.9.15\"\n```\n\n3 - Optionally, add the following to devDependencies in package.json if the project uses ngrx\n```json\n\"jest-marbles\": \"^2.3.1\",\n```\n\n4 - Add the following section to package.json\n```json\n\"jest\": {\n  \"preset\": \"jest-preset-angular\",\n  \"setupFilesAfterEnv\": [\n    \"\u003crootDir\u003e/setupJest.ts\"\n  ]\n},\n```\n\n5 - Add the following files from the repo and amend as required\n```json\nsetupJest.ts\nwallaby.js\njest.config.js\n```\n\n6 - Edit /src/tsconfig.spec.json and make the following amendments\n```json\nAdd compilerOptions -\u003e \"module\": \"commonjs\",\nRemove compilerOptions -\u003e types -\u003e jasmine\nRemove compilerOptions -\u003e types -\u003e node\nAdd compilerOptions -\u003e types -\u003e jest\n```\n\n7 - Modify the package.json to add the following scripts, replacing the standard \"test\" script\n```json\n\"test\": \"ng test {project-name} --coverage --watch=false\",\n\"test:update\": \"ng test {project-name} --coverage --watch=false -u\",\n\"test:watch\": \"ng test {project-name} --watch --coverage\",\n\"test:coverage\": \"ng test {project-name} --coverage\",\n```\n\n8 - In angular.json replace the \"test\" section with the following\n```json\n\"test\": {\n  \"builder\": \"@angular-builders/jest:run\",\n  \"options\": {\n    \"no-cache\": true\n  }\n},\n```\n\n9 - Delete src/test.ts\n\n10 - modify \"filesWithNoCoverageCalculated\" in wallaby.js and \"collectCoverageFrom\" in src/jest.config.js to defined files requiring no coverage\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbonejon%2Fangular-jest-wallabyjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbonejon%2Fangular-jest-wallabyjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbonejon%2Fangular-jest-wallabyjs/lists"}