- Added `CalcolaCodiceFiscale` function to calculate Italian fiscal code based on name, surname, birth date, gender, and municipality code. - Introduced utility functions for generating parts of the fiscal code, including handling special cases for names and surnames. - Created tests for the fiscal code calculation covering various scenarios. - Updated forms to enforce a maximum length for the fiscal code input. - Added `vitest` for testing and configured it with Vite. - Updated package dependencies to include testing libraries and Vite plugins.
10 lines
247 B
TypeScript
10 lines
247 B
TypeScript
import react from "@vitejs/plugin-react";
|
|
import tsconfigPaths from "vite-tsconfig-paths";
|
|
import { defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
plugins: [tsconfigPaths(), react()],
|
|
test: {
|
|
environment: "jsdom",
|
|
},
|
|
});
|