{"id":21296671,"url":"https://github.com/eccenca/ecc-test-helpers","last_synced_at":"2026-01-01T21:55:15.712Z","repository":{"id":44478845,"uuid":"57887636","full_name":"eccenca/ecc-test-helpers","owner":"eccenca","description":"Eccenca javascript test helpers","archived":false,"fork":false,"pushed_at":"2022-12-07T01:04:10.000Z","size":1008,"stargazers_count":0,"open_issues_count":15,"forks_count":0,"subscribers_count":11,"default_branch":"develop","last_synced_at":"2025-08-24T16:52:50.674Z","etag":null,"topics":[],"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/eccenca.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2016-05-02T12:08:21.000Z","updated_at":"2017-05-18T09:15:03.000Z","dependencies_parsed_at":"2023-01-24T07:31:08.760Z","dependency_job_id":null,"html_url":"https://github.com/eccenca/ecc-test-helpers","commit_stats":null,"previous_names":["elds/ecc-test-helpers"],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/eccenca/ecc-test-helpers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eccenca%2Fecc-test-helpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eccenca%2Fecc-test-helpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eccenca%2Fecc-test-helpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eccenca%2Fecc-test-helpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eccenca","download_url":"https://codeload.github.com/eccenca/ecc-test-helpers/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eccenca%2Fecc-test-helpers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28164059,"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":"2026-01-01T02:00:06.694Z","response_time":59,"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":[],"created_at":"2024-11-21T14:28:49.994Z","updated_at":"2026-01-01T21:55:15.693Z","avatar_url":"https://github.com/eccenca.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Eccenca test helpers (ecc-test-helpers)\n\nOffers a simple way to create an environment for testing.  \n\nCurrently includes:  \n\n- [jsdom](https://github.com/tmpvar/jsdom) with [localStorage](https://github.com/lmaccherone/node-localstorage) for all your DOM needs\n- [React](https://facebook.github.io/react/) and [TestUtils](https://facebook.github.io/react/docs/test-utils.html) (exposed via mocha `this` context)\n- Container for rendering your component that is create before each test and disposed afterwards (exposed via mocha context)\n- [Should.js](https://github.com/shouldjs/should.js) for your assertions (exposed as default module export)\n\n## Usage\n\n- Install module into your project (and save as dev deps) using `npm install --save-dev ecc-test-helpers`\n- Import the module in the beginning of your test suite using `import should from 'ecc-test-helpers'`\n- Access React, TestUtils and test container using `this` context, like so:\n\n```js\n\nimport should from 'ecc-test-helpers';\nimport Component from '../src/component';\n\ndescribe('Component suite', function() {\n    describe('Component', function() {\n        it('Should render ...', function() {\n            const React = this.React;\n            const TestUtils = this.TestUtils;\n\n            // render\n            const comp = React.render(\n                \u003cTestComp handleModelSelect={() =\u003e {}}/\u003e,\n                this.container\n            );\n            // ...\n        });\n    });\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feccenca%2Fecc-test-helpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feccenca%2Fecc-test-helpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feccenca%2Fecc-test-helpers/lists"}