7b6cd4d965
- Add validation rules for form fields with XSS protection - Create API error handler to parse and manage server validation errors - Integrate validation rules into contact and inquiries forms - Enhance error handling with user feedback for form submissions - Introduce unit tests for validation and error handling functionalities
11 lines
255 B
JavaScript
11 lines
255 B
JavaScript
/** @type {import('ts-jest').JestConfigWithTsJest} */
|
|
module.exports = {
|
|
preset: "ts-jest",
|
|
testEnvironment: "node",
|
|
roots: ["<rootDir>/lib"],
|
|
testMatch: ["**/__tests__/**/*.test.ts"],
|
|
moduleNameMapper: {
|
|
"^@/(.*)$": "<rootDir>/$1",
|
|
},
|
|
};
|