feat(medusa/product-export-strategy): Implement the Product export strategy (#1688)

This commit is contained in:
Adrien de Peretti
2022-06-22 23:42:31 +02:00
committed by GitHub
parent 0e34800573
commit 7b09b8c36c
26 changed files with 2017 additions and 106 deletions
+3 -1
View File
@@ -2,7 +2,7 @@ const path = require("path")
const { spawn } = require("child_process")
const { setPort } = require("./use-api")
module.exports = ({ cwd, verbose }) => {
module.exports = ({ cwd, redisUrl, uploadDir, verbose }) => {
const serverPath = path.join(__dirname, "test-server.js")
return new Promise((resolve, reject) => {
@@ -13,6 +13,8 @@ module.exports = ({ cwd, verbose }) => {
NODE_ENV: "development",
JWT_SECRET: "test",
COOKIE_SECRET: "test",
REDIS_URL: redisUrl, // If provided, will use a real instance, otherwise a fake instance
UPLOAD_DIR: uploadDir // If provided, will be used for the fake local file service
},
stdio: verbose
? ["inherit", "inherit", "inherit", "ipc"]