fix: Updating store currencies (#984)

* fix: Adds default currency to store currencies on create

* fix: Adds integration tests + currency update error handling

* add test

* Lowercase currency codes

* fix tests

* fix: Await drop database to stop Jest from complaining

* revert itnegration tests fix

* fix store tests
This commit is contained in:
Oliver Windall Juhl
2022-02-03 20:03:25 +01:00
committed by GitHub
parent 3bf32e5dc9
commit 59bb413245
5 changed files with 412 additions and 16 deletions

View File

@@ -11,9 +11,9 @@ const pgGodCredentials = {
password: DB_PASSWORD,
}
afterAll(() => {
afterAll(async () => {
const workerId = parseInt(process.env.JEST_WORKER_ID || "1")
dropDatabase(
await dropDatabase(
{ databaseName: `medusa-integration-${workerId}` },
pgGodCredentials
)