mirror of
https://github.com/pieartsy/PluralFlux.git
synced 2026-04-14 20:15:28 +10:00
adding jest and jest files
This commit is contained in:
@@ -18,5 +18,8 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"jest": "^30.2.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jest"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,6 +37,9 @@ database.members = sequelize.define('Member', {
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* Checks Sequelize database connection.
|
||||
*/
|
||||
database.check_connection = async function() {
|
||||
await sequelize.authenticate().then(async (result) => {
|
||||
console.log('Connection has been established successfully.');
|
||||
@@ -47,6 +50,9 @@ database.check_connection = async function() {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Syncs Sequelize models.
|
||||
*/
|
||||
async function syncModels() {
|
||||
await sequelize.sync().then(() => {
|
||||
console.log('Models synced successfully.');
|
||||
|
||||
0
tests/bot.test.js
Normal file
0
tests/bot.test.js
Normal file
0
tests/commands.test.js
Normal file
0
tests/commands.test.js
Normal file
0
tests/helpers/import.test.js
Normal file
0
tests/helpers/import.test.js
Normal file
0
tests/helpers/memberHelper.test.js
Normal file
0
tests/helpers/memberHelper.test.js
Normal file
0
tests/helpers/messageHelper.test.js
Normal file
0
tests/helpers/messageHelper.test.js
Normal file
0
tests/helpers/sequelize.test.js
Normal file
0
tests/helpers/sequelize.test.js
Normal file
0
tests/helpers/webhookHelper.test.js
Normal file
0
tests/helpers/webhookHelper.test.js
Normal file
Reference in New Issue
Block a user