-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into fix/rm-circleci-readme
- Loading branch information
Showing
317 changed files
with
38,636 additions
and
10,239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@medusajs/cache-redis": major | ||
"@medusajs/cache-inmemory": patch | ||
--- | ||
|
||
Integration tests fixes and ignore ttl 0 on cache modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,3 @@ | ||
const { bootstrapApp } = require("./bootstrap-app") | ||
const { setContainer } = require("./use-container") | ||
const { setPort, setExpressServer } = require("./use-api") | ||
const { startBootstrapApp } = require("./bootstrap-app") | ||
|
||
const setup = async () => { | ||
const { app, port, container } = await bootstrapApp() | ||
|
||
setContainer(container) | ||
|
||
const expressServer = app.listen(port, (err) => { | ||
setPort(port) | ||
process.send(port) | ||
}) | ||
|
||
setExpressServer(expressServer) | ||
} | ||
|
||
setup() | ||
startBootstrapApp() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,24 @@ | ||
const dbFactory = require("./environment-helpers/use-template-db") | ||
const { dropDatabase } = require("pg-god") | ||
|
||
module.exports = async () => { | ||
await dbFactory.destroy() | ||
const DB_HOST = process.env.DB_HOST | ||
const DB_USERNAME = process.env.DB_USERNAME | ||
const DB_PASSWORD = process.env.DB_PASSWORD | ||
const DB_NAME = process.env.DB_TEMP_NAME | ||
|
||
const pgGodCredentials = { | ||
user: DB_USERNAME, | ||
password: DB_PASSWORD, | ||
host: DB_HOST, | ||
} | ||
|
||
const teardown = async () => { | ||
try { | ||
await dropDatabase({ databaseName: DB_NAME }, pgGodCredentials) | ||
} catch (e) { | ||
console.error( | ||
`This might fail if it is run during the unit tests since there is no database to drop. Otherwise, please check what is the issue. ${e.message}` | ||
) | ||
} | ||
} | ||
|
||
module.exports = teardown |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.