{"id":14983291,"url":"https://github.com/cordejs/corde","last_synced_at":"2025-04-10T00:17:34.589Z","repository":{"id":37901930,"uuid":"199723681","full_name":"cordejs/corde","owner":"cordejs","description":"🤖 A simple e2e library for testing Discord Bots 🚀","archived":false,"fork":false,"pushed_at":"2023-05-19T00:26:40.000Z","size":38417,"stargazers_count":126,"open_issues_count":27,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T00:17:25.216Z","etag":null,"topics":["automated-testing","corde","discord-bot","discordbot","discordjs","e2e","nodejs"],"latest_commit_sha":null,"homepage":"https://cordejs.org","language":"TypeScript","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/cordejs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null}},"created_at":"2019-07-30T20:37:08.000Z","updated_at":"2025-04-06T19:00:27.000Z","dependencies_parsed_at":"2023-07-16T16:16:11.517Z","dependency_job_id":null,"html_url":"https://github.com/cordejs/corde","commit_stats":{"total_commits":2266,"total_committers":9,"mean_commits":"251.77777777777777","dds":"0.45278022947925856","last_synced_commit":"556bcc93cf9b65106e60820c00e8a177fde38ca4"},"previous_names":["lucasgmagalhaes/corde"],"tags_count":105,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cordejs%2Fcorde","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cordejs%2Fcorde/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cordejs%2Fcorde/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cordejs%2Fcorde/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cordejs","download_url":"https://codeload.github.com/cordejs/corde/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248131318,"owners_count":21052820,"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":["automated-testing","corde","discord-bot","discordbot","discordjs","e2e","nodejs"],"created_at":"2024-09-24T14:07:01.153Z","updated_at":"2025-04-10T00:17:34.562Z","avatar_url":"https://github.com/cordejs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cbr /\u003e\n  \u003cp\u003e\n    \u003cimg width=\"120\" height=\"120\" src=\"./website/static/img/logo/android-icon-192x192.png\" /\u003e\n  \u003c/p\u003e\n  \u003cp\u003e\n   \u003c!-- \u003ca href=\"https://discord.gg/f3Gs7uU\"\u003e\n      \u003cimg src=\"https://img.shields.io/discord/768647567461449778?color=7289da\u0026logo=discord\u0026logoColor=white\" alt=\"Discord server\" /\u003e\n    \u003c/a\u003e --\u003e\n    \u003ca href=\"https://gitpod.io/#https://github.com/cordejs/corde\"\u003e\n      \u003cimg\n        alt=\"CircleCi\"\n        src=\"https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod\"\n      /\u003e\n    \u003c/a\u003e\n    \u003cbr\u003e\n    \u003ca href=\"https://circleci.com/gh/cordejs/corde\"\u003e\n      \u003cimg\n        alt=\"CircleCi\"\n        src=\"https://img.shields.io/circleci/build/github/cordejs/corde\"\n      /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://codecov.io/gh/cordejs/corde\"\u003e\n      \u003cimg\n        alt=\"Codecov\"\n        src=\"https://img.shields.io/codecov/c/github/cordejs/corde\"\n      /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://www.npmjs.com/package/corde\"\u003e\n      \u003cimg alt=\"Npm version\" src=\"https://img.shields.io/npm/v/corde\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://www.npmjs.com/package/corde\"\u003e\n      \u003cimg alt=\"npm\" src=\"https://img.shields.io/npm/dt/corde\"\u003e\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n## 😀 Table of Content\n\n- [😀 Table of Content](#-table-of-content)\n- [👀 About](#-about)\n- [📜 Documentation](#documentation)\n- [🚀 Getting started](#-getting-started)\n\n## 👀 About\n\nCorde is a small testing library for Discord.js. As there is a tool to create bots for Discord, it's cool to also have a tool to test them. Corde objective is to be simple, fast, and readable to developers.\n\n## Documentation\n\nThe bellow documentation is a resume of what you can find in [Corde's site](https://cordejs.org)\n\n## 🚀 Getting started\n\n**Node.js 14.0 or newer is required**\n\nStarting to create tests with Corde is simple. First, install it locally with npm `npm i -D corde` or yarn `yarn add -D corde`.\n\nAfter installed, add the file `corde.config.json` in the root of your application with the following structure:\n\n```javascript\n{\n   \"cordeBotToken\":  \"\u003ctokenForCordeBot\u003e\",\n   \"botTestId\":  \"\u003cyourBotId\u003e\",\n   \"guildId\":  \"\u003cguildId\u003e\",\n   \"channelId\":  \"\u003cchannelId\u003e\",\n   \"botPrefix\":  \"!\",\n   \"testMatches\":  [\"./test/**\"]\n}\n```\n\nTest example:\n\n```javascript\nconst { group, test, command, beforeStart, afterAll } = require(\"corde\");\nconst { client, loginBot } = require(\"..\");\n\nbeforeStart(async () =\u003e {\n  await loginBot();\n});\n\ngroup(\"main commands\", () =\u003e {\n  test(\"ping command must return... Ping?!!\", () =\u003e {\n    expect(\"ping\").toReturn(\"Ping?\");\n  });\n});\n\nafterAll(() =\u003e {\n  client.destroy();\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcordejs%2Fcorde","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcordejs%2Fcorde","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcordejs%2Fcorde/lists"}