JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q22061F
  • License ISC

pucket is a typescript library to create automated tests for discord bots

Package Exports

  • pucket

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pucket) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

pucket Testing

pucket is a typescript library to create automated tests for discord bots

How it works ?

pucket uses two bots to send messages between then, the first one is the 'fake user', who will send the real bot. The second one, is the bot that you want to test the commands. After configure which one is the fake user and the test bot, you can write your case tests like this:

test('crete user').run(
    {
        say: "create",
        wait: "What's your name ?"
    }, 
    {
        say: "jhon",
        wait: "Hello jhon, welcome to my bot!"
    }
)

Quite simple uh ?

pucket sintax is short and simple. Your say something to the bot, then you expect that he respond something to will, so you gonna wait for a response.