Presupuestador_web/server/jest.mariadb.config.js
David Arranz bc34a073ad feat: implement MariaDB integration testing suite and related fixtures
- Updated `capitulos-esquema.md` to reflect the current state of models and integration testing setup.
- Added `jest.mariadb.config.js` for MariaDB specific test configurations.
- Introduced `mariadb.fixture.mock.ts` to handle isolated MariaDB connections for testing.
- Created integration tests for quote chapters in `quoteChapters.mariadb.test.ts` to validate business logic against MariaDB.
- Implemented `mariadbSafety.test.ts` to ensure safety checks and error handling during integration tests.
- Added `useChapterCollapse.ts` hook for managing chapter collapse animations in the client.
- Introduced `empty.tsx` components for consistent empty state UI across the application.
- Updated `jest.config.js` to ignore MariaDB test files in the standard test run.
- Enhanced `package.json` with a new script for running MariaDB tests.
2026-10-19 16:38:44 +02:00

10 lines
284 B
JavaScript

const base = require("./jest.config.js");
module.exports = {
...base,
testMatch: ["<rootDir>/src/contexts/sales/infrastructure/__integration__/*.mariadb.test.ts"],
testPathIgnorePatterns: ["<rootDir>/src/config/environments/test.ts"],
testTimeout: 30000,
maxWorkers: 1,
};