{"id":19785898,"url":"https://github.com/davidkhahn/tdd-in-react","last_synced_at":"2026-04-11T02:42:21.369Z","repository":{"id":44057068,"uuid":"215879540","full_name":"DavidKHahn/TDD-in-React","owner":"DavidKHahn","description":"Test Driven Development  ||  Tech Used: Cypress (e2e), Jest, ESLint, Parcel, React, Materialize, CircleCI, Redux","archived":false,"fork":false,"pushed_at":"2023-01-04T23:14:39.000Z","size":389,"stargazers_count":0,"open_issues_count":19,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-11T03:23:06.392Z","etag":null,"topics":["babel","cypress","enzyme","eslint","jest","parcel-bundler","react","tdd"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/DavidKHahn.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-10-17T20:25:37.000Z","updated_at":"2019-10-24T03:11:11.000Z","dependencies_parsed_at":"2023-02-02T23:30:53.383Z","dependency_job_id":null,"html_url":"https://github.com/DavidKHahn/TDD-in-React","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidKHahn%2FTDD-in-React","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidKHahn%2FTDD-in-React/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidKHahn%2FTDD-in-React/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidKHahn%2FTDD-in-React/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DavidKHahn","download_url":"https://codeload.github.com/DavidKHahn/TDD-in-React/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241119672,"owners_count":19912957,"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":["babel","cypress","enzyme","eslint","jest","parcel-bundler","react","tdd"],"created_at":"2024-11-12T06:16:03.986Z","updated_at":"2026-04-11T02:42:16.323Z","avatar_url":"https://github.com/DavidKHahn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## TDD-in-React\n\n**RULES TO FOLLOW WHEN TDD:**\n\n    Red, Green and Refactor.\n\n    \"Write a failing test, a passing test and improve code.\"\n\n       - A Senior Developer\n\n   **Feature Tours:** https://iamvery.com/2018/11/14/feature-tours.html (Pros and Cons behind Feature Tours approach)\n\n### Tools Used:\n\n**Cypress**: Mainly used for end-to-end testing (similar to Mocha for test runner, Chai for expectations, Sinon for test doubles except Cypress runs all of these under the hood)\n\n    yarn add --dev cypress\n\n**Enzyme**: React Component testing\n\n    yarn add --dev enzyme enzyme-adapter-react-16\n\n**Jest**: Unit testing\n\n    yarn add --dev jest @babel/preset-react @babel/plugin-syntax-dynamic-import babel-jest babel-core@^7.0.0-0 @babel/core\n\n**ESLint**: Formatting JS\n\n    yarn add --dev eslint eslint-config-codingitwrong babel-eslint eslint-plugin-jest\n\n    yarn add --dev eslint-plugin-react\n\n    yarn add --dev eslint-plugin-cypress\n\n**Materialize**: Materialize CSS for UI designs (https://materializecss.com/getting-started.html)\n\n    Include inside index.html:\n\n    \u003c!-- Import Google Icon Font --\u003e\n    \u003clink href=\"http://fonts.googleapis.com/icon?family=Material+Icons\" rel=\"stylesheet\"\u003e\n    \u003c!-- Import materialize.css --\u003e\n    \u003clink href=\"https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/css/materialize.min.css\" rel=\"stylesheet\"\u003e\n\n    \u003cscript src=\"https://code.jquery.com/jquery-2.1.1.min.js\"\u003e\u003c/script\u003e\n    \u003cscript src=\"https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/js/materialize.min.js\"\u003e\u003c/script\u003e\n\n**Babel**: JS Compiler mainly used to convert ECMAScript syntax for compatibility\n\n    yarn add --dev @babel/plugin-proposal-class-properties\n\n**Circle CI**:\n\n`chmod +x bin/cypress` in master (CLI) after creating a bin folder in root of project with a cypress file containing:\n\n    #!/bin/bash\n\n    yarn start \u0026 wait-on http://localhost:1234\n    $(yarn bin)/cypress run\n\nReturn to CircleCI dashboard and run setup for the project being used.\n\n**Formik**:\n\nUsing Formik for form validation: https://github.com/jaredpalmer/formik\n\n**React-Router-Dom**:\n\n    https://reacttraining.com/react-router/web/guides/quick-start\n\n    yarn add react-router-dom\n\n**Redux**:\n\n    yarn add redux react-redux redux-devtools-extension\n\n**Redux-Thunk**:\n\n    yarn add redux-thunk\n\n**Axios**:\n\n    yarn add axios\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidkhahn%2Ftdd-in-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidkhahn%2Ftdd-in-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidkhahn%2Ftdd-in-react/lists"}