Skip to main content
Version: 4.x

Changelog

4.4.6

Released 25-01-2022

💡 Miscellaneous

  • Remove references of config prop: botToken.

4.4.5

Released 08-11-2021

🐛 Bug Fixes

fix: adjust optional imports of packages used by typescript (#1110, #1111)

4.4.4

Released 27-10-2021

💡 Miscellaneous

  • Bump commander from 8.2.0 to 8.3.0

4.4.3

Released 21-10-2021

💡 Miscellaneous

  • Rollback log-update version

4.4.2

Released 21-10-2021

💡 Miscellaneous

  • Bump pretty-format from 27.1.0 to 27.2.0
  • Bump jest-diff from 27.1.0 to 27.2.0

4.4.1

Released 02-09-2021

4.4.0

💡 Miscellaneous

  • bump tslib from 2.3.0 to 2.3.1
  • bump jest-diff from 27.0.6 to 27.1.0

Released 08-08-2021

🚀 Features

  • Add configs in API to access configurations in read-only mode.
  • Added functions to corde's bot API:
    • voiceState (Get state of a connection in a voice channel)
    • client (Discord.js client used by corde's bot)
    • channel (gets the TextChannel provided in configs
    • guild (get Guild provided in configs)
    • guildMembers (get all members of the guild provided in configs)
    • guilds (get all guilds to which the bot has access)
    • roles (get all roles of the guild informed in configs)
    • isLoggedIn (checks if corde's bot is connected)
    • getOnlyTextChannels (filter all text channels of the guild provided in configs)
    • isInVoiceChannel (checks corde's bot is connected to a voiceChannel)
    • fetchChannel (Fetch for a channel based on its id)
    • fetchGuild (Fetch a guild based on its id)
    • fetchRole (Fetch a role based on its id)
    • getChannel (get the channel defined in configs, or someone searching by its id or name)
    • getGuild (get the guild defined in configs, or someone searching by its id or name)
    • createGuild (Creates a new guild)
    • createChannel (Creates a new channel (default textChannel) into the guild defined in configs)
    • createVoiceChannel (Creates a new VoiceChannel into the guild defined in configs )
    • createTextChannel (Creates a new TextChannel into the guild defined in configs)
    • createCategoryChannel (Creates a new CategoryChannel into the guild defined in configs )
    • getRole (Find a role in the guild defined in configs.)

4.3.1

Released 31-07-2021

💡 Miscellaneous

  • bump commander from 8.0.0 to 8.1.0
  • bump chalk from 4.1.1 to 4.1.2

4.3.0

Released 24-07-2021

💣 Breaking changes

  • Update node engine to version 14.

🚀 Features

  • Add typescript support for Corde through the usage of the ts-node register
  • Add extensions property in configs. Define file extensions to be loaded. Default [".js",".ts"]
  • Add rootDir property in config. It defines the root dir of the project, with can be used to define others paths in configurations. Default: .
  • Add exitOnFileReadingError property in configs: Define if corde should stop if any problem, occurs when importing a test file: default: true
  • Add project property in configs: Definition of tsconfig path. default root/tsconfig.json*

4.2.0

Released 27-06-2021

💣 Breaking changes

  • Renamed config prop timeOut to timeout. #814

4.1.2

Released 27-06-2021

🐛 Bug Fixes

  • Fix corde attempt to set value {} to config.testMatches, causing an error in initialization due to the expectation of this property to be an array. #774

4.1.1

Released 13-06-2021

🐛 Bug Fixes

  • Fix bug that prevents corde to override timeout setting #771

4.1.0

Released 06-06-2021

🚀 Features

  • Addition of toMessageContentContains and toEmbedMatch test functions #757

💡 Miscellaneous

  • Change references to new website URL

4.0.5

Released 26-05-2021

💡 Miscellaneous

  • upgrade jest-diff from 26.6.2 to 27.0.1
  • upgrade pretty-format from 26.6.2 to 27.0.1

4.0.4

Released 23-05-2021

💡 Miscellaneous

  • Fix tests pattern in README

4.0.3

Released 23-05-2021

🐛 Bug Fixes

  • Fix tests read following a pattern #714

4.0.2

Released 21-05-2021

🐛 Bug Fixes

  • fix corde execution due to CRLF format files

4.0.1

Released 18-05-2021

💡 Miscellaneous

  • upgrade chalk from 4.1.0 to 4.1.1
  • upgrade commander from 7.0.0 to 7.2.0
  • upgrade discord.js from 12.2.0 to 12.5.3
  • upgrade glob from 7.1.6 to 7.1.7
  • upgrade ora from 5.0.0 to 5.4.0
  • upgrade tslib from 2.1.0 to 2.2.0

4.0.0

Released 16-05-2021

💣 Breaking changes

  • Define test files and ignore files using regex patterns. (#695)(#677)

🐛 Bug Fixes

  • Corde validation error is being silent (#676)(#677)

🚀 Features

  • Disable timeout when running corde in debugging (#675)(#677)

3.1.5

Released 14-05-2021

💡 Miscellaneous

  • bump devDependency dotenv from 8.5.1 to 9.0.2
  • bump devDependency @types/node from 15.0.2 to 15.0.3
  • bump devDependency @babel/core from 7.14.0 to 7.14.2
  • bump devDependency prettier from 2.2.1 to 2.3.0
  • bump devDependency dependency-cruiser from 9.26.1 to 10.0.1
  • bump devDependency ts-jest from 26.5.5 to 26.5.6
  • bump devDependency @babel/preset-env from 7.14.1 to 7.14.2

3.1.4

Released 09-05-2021

💡 Miscellaneous

  • Bump dependencies version

3.1.3

Released 26-04-2021

Change repo location in package.json


3.1.2

Released 20-04-2020

🐛 Bug Fixes

  • Fix new line ending conflicting in unix operation systems (#641)

3.1.0

Released 12-04-2021

🚀 Features

  • Addition of inChannel, inGuild and toHaveResult operators (#620, #604, #605)
  • Allow expect command to send the message in another channel(#618)

🐛 Bug Fixes

  • Fix fix a bug that prevents corde to assert tests only in the defined channel and guild (#619)
  • Fix error no treated in console (#598)

💡 Miscellaneous

  • Several typos fixes.

3.0.2

Released 01-04-2021

💡 Miscellaneous

  • Bump some dependencies
  • Fix word spells in code documentation

3.0.1

Released 30-03-2021

💣 Breaking changes

  • toEditMessage and toReturn no longer accepts a MessageEmbed object. Instead, it accepts an object that matches with the MessageEmbedLike interface.
  • toAddReaction now receives two parameters: The reactions and the identifier of the message where the reactions must be added. But it's optional.

🚀 Features

  • Full rework of UI of the CLI (#362)
  • Added timeout for group and test clausures (#505)
  • Created alias for group and test (describe and it respectively) (#493)
  • Added timeout for hooks(afterAll, beforeStart, afterEach, beforeEach) (#590)
  • Hooks executions are being done safely, so they do not breaks the application (#588)
  • Add environment variables on corde execution (#577)
  • Allowed group and test to receive any type as description (first parameter) (#492)
  • Added stack trace for tests that fail (#566)
  • Added getRole utility function for the api (#516)
  • Added createRole utility function for the api (#517)

🐛 Bug Fixes

  • Allow corde to accept tests with extensions different that *.test (#595)
  • Removed duplication of error display (#424)
  • Fix timeout not being loaded (#589)
  • Fix default value for tests timeout (#518)
  • Fix bug in Queue that prevents async code to be waited (#529)

💡 Miscellaneous

  • Renamed RoleData and MessageData to RoleIdentifier and MessageIdentifier (#583)
  • Remove prettier for code indentation provenience from init command, replaced it by a corde's self-placed code (#574)

2.0.4

Released 25-03-2021

💡 Miscellaneous

  • update package.json to contain corde's site

2.0.3

Released 22-03-2021

💡 Miscellaneous

Bump dependencies version


2.0.2

Released 20-03-2021

💡 Miscellaneous

Fix corde execution


2.0.1

Released 01-02-2021

💡 Miscellaneous

  • Change the README logo. (it has a logo with 2MB, and was replace for a logo with 10kb)

2.0.0

Released 31-01-2021

💣 Breaking changes

  • Renamed command to expect and test functions witch has prefix must(mustReturn) now is to (toReturn) #266

🚀 Feature

  • Now is possible to add group or test without adding a name for then #291.
  • Allowed users to define test files in CLI #317
  • Reviewed error messages #302
  • Created toRemoveReaction command #318
  • Created toSetRoleColor command #271
  • Created toDeleteRole command #272
  • Created toSetRoleHoist command #273
  • Created toSetRoleMentionable command #270
  • Created toRenameRole command #269
  • Created toSetRolePosition command #267
  • Created toSetRolePermissions command #268
  • Created afterEach function #191
  • Created beforeEach function #265
  • Created toPinMessage command #243
  • Created toUnpinMessage command #244
  • Add default export "corde" with all available functions #482
  • Allow sending message of corde bot from API #483
  • Created toEditMessage command #242

Bug fix: 🐛

  • Fix snipper bar #324
  • Expect.not setting command name as null #341
  • Corde does not execute #421
  • Rename config file from corde. to corde.config. #429
  • Add test directly to corde.group returns empty test file #497

💡 Miscellaneous

  • Add lin in CI #277
  • Rewrite tests structures #274
  • Create json schema for corde.config.json configs #280
  • Implement e2e tests #478, #484

2.0.0-beta.27

Released 24-01-2021

💡 Miscellaneous

  • Add wait time to toSetRoleMentionable function to avoid inconsistency

2.0.0-beta.21

Released 07-11-2020

💡 Miscellaneous

Fix prettier import


2.0.0-beta.10

Released 02-11-2020

💡 Miscellaneous

Hotfix tests executions


2.0.0-beta.9

Released 02-11-2020

💡 Miscellaneous

Hotfix for corde types


2.0.0-beta.8

Released 02-11-2020

💡 Miscellaneous

Hotfix for package usage


2.0.0-beta.7

Released 21-10-2020

💡 Miscellaneous

add beforeEach function


2.0.0-beta.6

Released 19-10-2020

💡 Miscellaneous

add afterEach function


2.0.0-beta.5

Released 19-10-2020

💡 Miscellaneous

add toSetRolePermission function


2.0.0-beta.4

Released 19-09-2020

💡 Miscellaneous

Add: toSetRolePosition command test #363


1.0.2

Released 12-07-2020

💡 Miscellaneous

Update dependencies


1.0.1

Released 06-07-2020

🐛 Bug Fixes

  • Fix API and README docs
  • Pump dependencies version

1.0.0

Released 05-07-2020

🚀 Features

  • Allow user to set config file in CLI #194
  • Create validate command to check data of configs #187
  • Create init command #186
  • Allow using more than one type of config file #182
  • Add command to init corde.json #181
  • Add command to check corde version #180
  • Migrate the CLI to commander #179
  • Rewrite architecture #174

😨 Breaking changes

  • Restrict corde to use node v12 or newer #185
  • Rename functions "should" to "must" #178
  • Create .not statement instead of a method for each deny function #177
  • Rename configuration "testFilesDir" to "testFiles" and make it an array instead of a plain string #165
  • Create addsReaction command #129
  • Create a deep search for tests files #129

🐛 Bug Fixes

  • Not full report is showing #176

0.2.4

Released 14-06-2020

  • Update dependencies

0.2.3

Released 07-06-2020

  • Fix logo path error in README.md

0.2.2

Released 07-06-2020

Bug fix: 🐛

  • Removes the property botFilePath from configs due to not using. Fixed not file folder error message when reading configs.
  • Pumped libraries version.

0.1.0-beta.1

Released 20-04-2020

🚀 Feature

  • group
  • test
  • command
    • shouldReturn
    • shouldNotReturn

0.1.0-beta.0

Released 08-09-2019

💡 Miscellaneous

  • Output colors