diff --git a/test-utils/CHANGELOG.md b/test-utils/CHANGELOG.md new file mode 100644 index 0000000..46dc9eb --- /dev/null +++ b/test-utils/CHANGELOG.md @@ -0,0 +1,12 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [3.0.1] - 2023-09-15 + +### Fixed + +- Support `@testing-library/react` v14 as peer dependency diff --git a/test-utils/README.md b/test-utils/README.md index bbd8be1..c68e112 100644 --- a/test-utils/README.md +++ b/test-utils/README.md @@ -5,13 +5,16 @@ This is a test utility for [morfi](https://www.npmjs.com/package/morfi). ## Installation -``` + +```sh npm i -D morfi-test-utils +pnpm add -D morfi-test-utils ``` ## How-to ### Testing Forms + ```tsx import { render } from '@testing-library/react'; import { MorfiTestUtils } from 'morfi-test-utils'; @@ -60,6 +63,7 @@ it('interacts with my form', async () => { ``` ### Testing Fields + ```tsx import { render, fireEvent } from '@testing-library/react'; import { MorfiTestUtils } from 'morfi-test-utils'; diff --git a/test-utils/package.json b/test-utils/package.json index 9248d2c..f380dbc 100644 --- a/test-utils/package.json +++ b/test-utils/package.json @@ -1,6 +1,6 @@ { "name": "morfi-test-utils", - "version": "3.0.0", + "version": "3.0.1", "main": "dist/index.cjs.js", "module": "dist/index.es.js", "types": "dist/index.d.ts", @@ -19,7 +19,7 @@ "url": "https://github.com/fdc-viktor-luft/morfi/issues" }, "peerDependencies": { - "@testing-library/react": "^13.3.0", + "@testing-library/react": ">= 13.3.0 < 15", "morfi": "^2.0.0", "react": ">= 18" },