{"id":26982967,"url":"https://github.com/pawk/test-utils","last_synced_at":"2025-09-17T15:42:36.967Z","repository":{"id":57135495,"uuid":"138476107","full_name":"pawk/test-utils","owner":"pawk","description":"Library to aid javascript testing","archived":false,"fork":false,"pushed_at":"2018-08-20T18:18:48.000Z","size":140,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-11T00:03:24.127Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","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/pawk.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":"2018-06-24T11:25:24.000Z","updated_at":"2018-08-20T18:18:36.000Z","dependencies_parsed_at":"2022-09-02T19:02:27.896Z","dependency_job_id":null,"html_url":"https://github.com/pawk/test-utils","commit_stats":null,"previous_names":["pawel-gawel/test-utils"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawk%2Ftest-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawk%2Ftest-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawk%2Ftest-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawk%2Ftest-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pawk","download_url":"https://codeload.github.com/pawk/test-utils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247039784,"owners_count":20873604,"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":[],"created_at":"2025-04-03T16:37:28.906Z","updated_at":"2025-09-17T15:42:31.924Z","avatar_url":"https://github.com/pawk.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Library to aid javascript testing\n\n## Installation\n\nGlobal installation is recommended if you plan to use terminal commands in multiple projects\n\n```\nnpm install -g @pawel-gawel/test-utils\n```\n\nIn case you plan to leverage bootstrap scripts, you should install it as a project's dev dependency\n\n```\nnpm install -save-dev @pawel-gawel/test-utils\n```\n\n## Terminal commands\n\nWhen installed globally, command `test-utils` is available in the terminal.\n\nOne can find current usage by typing \n\n```\ntest-utils -h\n```\n\n### Run tests\n\n```\ntest-utils run [glob...]\n# or\ntest-run [glob...]\n```\n\nDefault `glob` is `src/**/*-test.*` to promote next-to-code test location convention.\n\n### Watch tests\n\n```\ntest-utils watch [glob...]\n# or\ntest-watch [glob...]\n```\n\nDefault `glob` is `src/**/*-test.*` to promote next-to-code test location convention.\n\n### Create new test suite\n\nTo create new test suite, go with\n\n```\ntest-utils gen my-awesome-name\n# or \ntest-gen my-awesome-name\n```\n\nwhere `my-awesome-name` should be a dashed name of existing module to be covered by tests. It could also be relative path to existing file\n\n```\ntest-gen examples/my-awesome-component.jsx\n```\n\nOutput file will have name of `my-awesome-name-test.ext`, where `ext` will be derived from existing module file (if there is one with maching name). If not, default `js` extension will be used.\n\n#### Test templates\n\nYou can also specify which template you want to use for new test suite, like \n\n```\ntest-gen --template react my-awesome-component\n```\n\nCurrently there are only `base` and `react` templates available.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpawk%2Ftest-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpawk%2Ftest-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpawk%2Ftest-utils/lists"}