Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Contributing

Thanks for contributing to `@enterwell/react-form-validation`.

## Prerequisites

- Node.js 22 or newer
- `pnpm` via Corepack

## Local setup

```bash
corepack enable
pnpm install
```

## Development workflow

- Keep changes focused and update tests or documentation when needed.
- Run the existing checks before opening a pull request:

```bash
pnpm build
pnpm test
```

- Use `pnpm test:open` if you want to work with Cypress component tests locally.

## Pull requests

- Open development pull requests against the `stage` branch.
- Keep `master` for release-ready changes.
- If your change affects a published package release, update the package version and `CHANGELOG.md`.
4 changes: 2 additions & 2 deletions cypress/components/localRemoteValidation.cy.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import EmailComponentWithFields from '../testComponents/EmailComponentWithFields
import EmailComponentWithLocalValidation from '../testComponents/EmailComponentWithLocalValidation.jsx';
import EmailComponentWithRemoteValidation from '../testComponents/EmailComponentWithRemoteValidation.jsx';
import EmailComponentWithSubmit from '../testComponents/EmailComponentWithSubmit.jsx';
import { submitForm } from '../../src/formUtils.js';
import { useValidation } from '../../src/useValidation.js';
import { submitForm } from '../../src/formUtils';
import { useValidation } from '../../src/useValidation';

const emailValidationRemote = (value) => new Promise((resolve) => setTimeout(() => resolve(isValidEmail(value)), 2000));
const testEmailValid = "matej.radovix@enterwell.net";
Expand Down
Loading
Loading