feature/IO-2885-IntelliPay-App-Postback

- Refactor / Add Tests
This commit is contained in:
Dave Richer
2025-04-02 11:09:03 -04:00
parent c78b9866a3
commit 9bf6ba9cf0
12 changed files with 686 additions and 275 deletions

View File

@@ -1,10 +1,13 @@
import { defineConfig } from "vitest/config";
const { defineConfig } = require("vitest/config");
export default defineConfig({
module.exports = defineConfig({
test: {
environment: "node",
globals: true,
include: ["./server/tests/**/*.{test,spec}.[jt]s"], // Only search /tests in root
include: [
"./server/tests/**/*.{test,spec}.[jt]s", // Existing pattern for /server/tests
"./server/**/*.test.js" // New pattern for test.js in server and subfolders
],
exclude: ["**/client/**", "**/node_modules/**", "**/dist/**"] // Explicitly exclude /client
}
});