Open Source Contributions
Contributing
Development Guidelines
feat: add new feature fix: resolve bug docs: update documentation style: format code refactor: improve code structure test: add tests chore: update dependencies
// Test component rendering it("renders correctly", () => { render(<Component />); expect(screen.getByText("text")).toBeInTheDocument(); }); // Test user interactions it("handles user input", async () => { render(<Component />); await userEvent.type(screen.getByRole("textbox"), "input"); expect(screen.getByText("input")).toBeInTheDocument(); });
/** * Calculates the total price including tax * @param {number} price - The base price * @param {number} taxRate - The tax rate as a decimal * @returns {number} The total price including tax * @example * const total = calculateTotal(100, 0.1); * // Returns 110 */ function calculateTotal(price: number, taxRate: number): number { return price * (1 + taxRate); }
Version History
Last updated