From 9d77998dc423683704271042e02ab0262b326b1e Mon Sep 17 00:00:00 2001 From: Matt Venables Date: Fri, 24 Mar 2023 05:34:37 -0400 Subject: [PATCH] Add testing-library/jest-dom types for pnpm pnpm installs these types to node_modules/.pnpm by default, so we need to explicitly add this dependency. See https://github.com/testing-library/jest-dom/issues/123#issuecomment-1282207728 --- README.md | 30 +++++++++++++++--------------- package.json | 1 + pnpm-lock.yaml | 2 ++ 3 files changed, 18 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index f91cbd1..00f28fb 100644 --- a/README.md +++ b/README.md @@ -20,29 +20,29 @@ 1. Clone this repo to your desired path: - ```sh - git clone git@github.com:startkit-dev/startkit-next.git my-new-project - ``` + ```sh + git clone git@github.com:startkit-dev/startkit-next.git my-new-project + ``` 2. Rename the project: - ```sh - ./bin/rename - ``` + ```sh + ./bin/rename + ``` 3. Update your git remote to point to StartKit as `upstream` - ```sh - git remote rename origin upstream - ``` + ```sh + git remote rename origin upstream + ``` - In the future, you'll be able to pull in the latest StartKit changes without - missing a beat by running: + In the future, you'll be able to pull in the latest StartKit changes without + missing a beat by running: - ```sh - git fetch upstream - git pull upstream/main - ``` + ```sh + git fetch upstream + git pull upstream/main + ``` ## Getting Started diff --git a/package.json b/package.json index a7cf455..76b7c88 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "@types/node": "^18.11.19", "@types/react": "^18.0.27", "@types/react-dom": "^18.0.11", + "@types/testing-library__jest-dom": "^5.14.5", "@typescript-eslint/eslint-plugin": "^5.48.0", "autoprefixer": "^10.4.13", "eslint": "^8.33.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7048aa9..95fd4f1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,6 +8,7 @@ specifiers: '@types/node': ^18.11.19 '@types/react': ^18.0.27 '@types/react-dom': ^18.0.11 + '@types/testing-library__jest-dom': ^5.14.5 '@typescript-eslint/eslint-plugin': ^5.48.0 autoprefixer: ^10.4.13 clsx: ^1.2.1 @@ -45,6 +46,7 @@ devDependencies: '@types/node': 18.15.7 '@types/react': 18.0.28 '@types/react-dom': 18.0.11 + '@types/testing-library__jest-dom': 5.14.5 '@typescript-eslint/eslint-plugin': 5.56.0_j4766f7ecgqbon3u7zlxn5zszu autoprefixer: 10.4.14_postcss@8.4.21 eslint: 8.36.0