Merge pull request #231 from MRuy/fix/run-tests-in-memory-db

Use in memory database for tests
This commit is contained in:
Ajay Ramachandran 2021-04-29 18:26:15 -04:00 committed by GitHub
commit 423ea9cbc6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4561 additions and 91 deletions

4646
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -13,7 +13,7 @@
"author": "Ajay Ramachandran",
"license": "MIT",
"dependencies": {
"better-sqlite3": "^5.4.3",
"better-sqlite3": "^7.1.5",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"express-rate-limit": "^5.1.3",

View file

@ -10,8 +10,8 @@
"discordNeuralBlockRejectWebhookURL": "http://127.0.0.1:8081/NeuralBlockRejectWebhook",
"neuralBlockURL": "http://127.0.0.1:8081/NeuralBlock",
"behindProxy": true,
"db": "./test/databases/sponsorTimes.db",
"privateDB": "./test/databases/private.db",
"db": ":memory:",
"privateDB": ":memory:",
"createDatabaseIfNotExist": true,
"schemaFolder": "./databases",
"dbSchema": "./databases/_sponsorTimes.db.sql",