{"id":21102427,"url":"https://github.com/colinrobertbrooks/testing-javascript-applications-demo","last_synced_at":"2026-04-11T18:04:51.546Z","repository":{"id":54670567,"uuid":"156425266","full_name":"colinrobertbrooks/testing-javascript-applications-demo","owner":"colinrobertbrooks","description":"A demo app with static analysis and unit/integration/end-to-end tests 🧪","archived":false,"fork":false,"pushed_at":"2021-02-04T17:22:37.000Z","size":436,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-14T08:28:59.485Z","etag":null,"topics":["end-to-end-testing","integration-testing","javascript","nodejs","reactjs","testing","unit-testing"],"latest_commit_sha":null,"homepage":"https://colinrobertbrooks.github.io/blog/testing-javascript-applications/","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/colinrobertbrooks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-06T17:57:56.000Z","updated_at":"2023-03-04T05:37:45.000Z","dependencies_parsed_at":"2022-08-13T23:30:31.498Z","dependency_job_id":null,"html_url":"https://github.com/colinrobertbrooks/testing-javascript-applications-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/colinrobertbrooks/testing-javascript-applications-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colinrobertbrooks%2Ftesting-javascript-applications-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colinrobertbrooks%2Ftesting-javascript-applications-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colinrobertbrooks%2Ftesting-javascript-applications-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colinrobertbrooks%2Ftesting-javascript-applications-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/colinrobertbrooks","download_url":"https://codeload.github.com/colinrobertbrooks/testing-javascript-applications-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colinrobertbrooks%2Ftesting-javascript-applications-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268410546,"owners_count":24246022,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["end-to-end-testing","integration-testing","javascript","nodejs","reactjs","testing","unit-testing"],"created_at":"2024-11-19T23:55:21.844Z","updated_at":"2026-04-11T18:04:51.512Z","avatar_url":"https://github.com/colinrobertbrooks.png","language":"JavaScript","readme":"# Testing Javascript Applications Demo\n\nA demo app with static analysis and unit/integration/end-to-end tests. Read more about it [here](https://colinrcummings.github.io/blog/testing-javascript-applications/).\n\n[![Build Status](https://travis-ci.com/colinrcummings/testing-javascript-applications-demo.svg?branch=master)](https://travis-ci.com/colinrcummings/testing-javascript-applications-demo)\n[![Codecov Coverage](https://img.shields.io/codecov/c/github/colinrcummings/testing-javascript-applications-demo.svg?style=flat-square)](https://codecov.io/github/colinrcummings/testing-javascript-applications-demo/)\n\n## System Requirements\n\n- [git](https://git-scm.com/) v2.14.1 or greater\n- [node](https://nodejs.org/) v8.9.4 or greater\n- [npm](https://www.npmjs.com/) v5.6.0 or greater\n\n## Setup\n\n```\ngit clone https://github.com/colinrcummings/testing-javascript-applications-demo.git\ncd testing-javascript-applications-demo\nnpm run setup\n```\n\n## About the app\n\nThis app has a home page, a login page and a series of feature pages (Feature 1 and Feature 2) for authorized users. Users can be created, updated and destroyed by admin users on the Manage Users page.\n\n## Running the app\n\n### Development\n\nOptimized for DX.\n\n```\nnpm run db:reset:dev\nnpm run start:dev\n```\n\nVisit [localhost:3000](http://localhost:3000/); login with username \"admin\" and password \"password\".\n\n### Test\n\nOptimized for end-to-end testing (see below).\n\n```\nnpm run db:reset:test\nnpm run build:test\nnpm run start:test\n```\n\nVisit [localhost:3000](http://localhost:3000/); login with username \"cypress\" and password \"password\".\n\n### Production\n\nOptimized for UX.\n\n```\nnpm run db:init\nnpm run build\nnpm start\n```\n\nVisit [localhost:80](http://localhost:80/); login with username \"admin\" and password \"password\".\n\n## Running tests\n\n_Scripts included in the `precommit` and `validate` scripts are indicated below._\n\n### Static Analysis\n\nRun [eslint](https://eslint.org/) against the codebase for a list of exceptions (staged files are checked in the `precommit` script; all files are checked in the `validate` script):\n\n```\nnpm run lint\n```\n\nRun [prettier](https://prettier.io/) against the codebase for a list of exceptions (staged files are checked in the `precommit` script; all files are checked in the `validate` script):\n\n```\nnpm run format:check\n```\n\nRun prettier against the codebase and automatically fix exceptions:\n\n```\nnpm run format:fix\n```\n\n### Unit \u0026 Integration\n\nRun [jest](https://jestjs.io/) tests (included in the `precommit` script):\n\n```\nnpm run test\n```\n\nRun jest tests in watch mode:\n\n```\nnpm run test:watch\n```\n\nRun jest tests and generate code coverage via [istanbul](https://istanbul.js.org/) (included in the `validate` script):\n\n```\nnpm run coverage\n```\n\n### End-to-end\n\nRun [cypress](https://www.cypress.io/) tests in headless mode (included in the `validate` scripts):\n\n```\nnpm run test:e2e\n```\n\nRun cypress tests in interactive mode:\n\n```\ntest:e2e:interactive\n```\n\n_Both commands reset the database, generate a build and start the server first._\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolinrobertbrooks%2Ftesting-javascript-applications-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcolinrobertbrooks%2Ftesting-javascript-applications-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolinrobertbrooks%2Ftesting-javascript-applications-demo/lists"}