- 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.
13 lines
369 B
JavaScript
13 lines
369 B
JavaScript
// jest.config.js
|
|
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
|
|
|
|
module.exports = {
|
|
preset: "ts-jest",
|
|
testEnvironment: "node",
|
|
moduleNameMapper: {
|
|
"^@shared/(.*)$": "<rootDir>/../shared/lib/$1",
|
|
"^@/(.*)$": "<rootDir>/src/$1",
|
|
},
|
|
testPathIgnorePatterns: ["<rootDir>/src/config/environments/test.ts", "\\.mariadb\\.test\\.ts$"],
|
|
};
|