{"id":17406164,"url":"https://github.com/isolcat/babel-plugin-testdev","last_synced_at":"2025-08-03T10:30:50.326Z","repository":{"id":63511313,"uuid":"568014089","full_name":"isolcat/babel-plugin-testdev","owner":"isolcat","description":"The babel plugin for hiding your test code","archived":false,"fork":false,"pushed_at":"2022-11-20T08:56:09.000Z","size":38,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-24T04:34:04.959Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/isolcat.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":"2022-11-19T07:04:23.000Z","updated_at":"2023-10-15T05:12:14.000Z","dependencies_parsed_at":"2022-11-20T10:01:49.095Z","dependency_job_id":null,"html_url":"https://github.com/isolcat/babel-plugin-testdev","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/isolcat%2Fbabel-plugin-testdev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isolcat%2Fbabel-plugin-testdev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isolcat%2Fbabel-plugin-testdev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isolcat%2Fbabel-plugin-testdev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/isolcat","download_url":"https://codeload.github.com/isolcat/babel-plugin-testdev/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228537448,"owners_count":17933517,"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":"2024-10-16T21:05:54.768Z","updated_at":"2024-12-06T23:21:46.178Z","avatar_url":"https://github.com/isolcat.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🐱babel-plugin-testdev\r\n\r\nThe babel plugin for hiding your test code\r\n\r\n## Motivation\r\n\r\nThere are already many unit testing frameworks on the market, such as: `vitest`, `jest`, but if you do not want to or do not have the energy to learn unit testing.\r\n\r\nYou may wish to use the plug-in, you do not need any learning costs to solve some simple tests😽\r\n\r\n## Install\r\n\r\n```shell\r\npnpm add babel-plugin-testdev\r\n```\r\n\r\n## Configure\r\n\r\nYou just need to do this：\r\n\r\n```js\r\n// babel.config.js\r\nmodule.exports = {\r\n  plugins: [\"testdev\"],\r\n};\r\n```\r\n\r\nAt the time of testing：\r\n\r\n```js\r\nif(TEST){\r\n    //Fill in the code you want to test here, he will be hidden in production\r\n}\r\n```\r\n\r\nYou can also do your own testing in the `test` file\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisolcat%2Fbabel-plugin-testdev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisolcat%2Fbabel-plugin-testdev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisolcat%2Fbabel-plugin-testdev/lists"}