Deploy stack su Proxmox / deploy (push) Failing after 3s
Monorepo npm con apps/public (Angular SSR), apps/private (Angular SPA), apps/api (Fastify), packages/shared e packages/styles; Medusa 2.21 in medusa/; infrastruttura Docker (Postgres PostGIS+pgvector, Redis, Caddy, backup) e workflow Gitea Actions per il deploy via SSH a ogni push su master. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018jQyT6dR9czzGwqb7FkG6u
28 lines
842 B
JavaScript
28 lines
842 B
JavaScript
const { loadEnv } = require("@medusajs/utils");
|
|
loadEnv("test", process.cwd());
|
|
|
|
module.exports = {
|
|
transform: {
|
|
"^.+\\.[jt]s$": [
|
|
"@swc/jest",
|
|
{
|
|
jsc: {
|
|
parser: { syntax: "typescript", decorators: true },
|
|
},
|
|
},
|
|
],
|
|
},
|
|
testEnvironment: "node",
|
|
moduleFileExtensions: ["js", "ts", "json"],
|
|
modulePathIgnorePatterns: ["dist/", "<rootDir>/.medusa/"],
|
|
setupFiles: ["./integration-tests/setup.js"],
|
|
};
|
|
|
|
if (process.env.TEST_TYPE === "integration:http") {
|
|
module.exports.testMatch = ["**/integration-tests/http/*.spec.[jt]s"];
|
|
} else if (process.env.TEST_TYPE === "integration:modules") {
|
|
module.exports.testMatch = ["**/src/modules/*/__tests__/**/*.[jt]s"];
|
|
} else if (process.env.TEST_TYPE === "unit") {
|
|
module.exports.testMatch = ["**/src/**/__tests__/**/*.unit.spec.[jt]s"];
|
|
}
|