Skip to content

Commit c6d65b6

Browse files
author
Craig
committed
Adds dependencies for assisting with form submissions and testing
1 parent 678c224 commit c6d65b6

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

jest.setup.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import '@testing-library/jest-dom'
2-
import { server } from './resources/js/mocks/server'
1+
import '@testing-library/jest-dom';
2+
import 'whatwg-fetch';
3+
import { server } from './resources/js/mocks/server';
34

45
beforeAll(() => server.listen())
56
afterEach(() => server.resetHandlers())

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@
2727
"postcss": "^8.4.13",
2828
"prettier": "^2.6.2",
2929
"prettier-plugin-tailwindcss": "^0.1.11",
30-
"tailwindcss": "^3.0.24"
30+
"tailwindcss": "^3.0.24",
31+
"whatwg-fetch": "^3.6.2"
3132
},
3233
"dependencies": {
3334
"clsx": "^1.1.1",
3435
"react": "^18.1.0",
35-
"react-dom": "^18.1.0"
36+
"react-dom": "^18.1.0",
37+
"react-hook-form": "^7.31.3"
3638
}
3739
}

yarn.lock

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6110,6 +6110,11 @@ react-dom@^18.1.0:
61106110
loose-envify "^1.1.0"
61116111
scheduler "^0.22.0"
61126112

6113+
react-hook-form@^7.31.3:
6114+
version "7.31.3"
6115+
resolved "https://registry.yarnpkg.com/react-hook-form/-/react-hook-form-7.31.3.tgz#b61bafb9a7435f91695351a7a9f714d8c4df0121"
6116+
integrity sha512-NVZdCWViIWXXXlQ3jxVQH0NuNfwPf8A/0KvuCxrM9qxtP1qYosfR2ZudarziFrVOC7eTUbWbm1T4OyYCwv9oSQ==
6117+
61136118
react-is@^17.0.1:
61146119
version "17.0.2"
61156120
resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0"
@@ -7325,6 +7330,11 @@ whatwg-encoding@^2.0.0:
73257330
dependencies:
73267331
iconv-lite "0.6.3"
73277332

7333+
whatwg-fetch@^3.6.2:
7334+
version "3.6.2"
7335+
resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz#dced24f37f2624ed0281725d51d0e2e3fe677f8c"
7336+
integrity sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA==
7337+
73287338
whatwg-mimetype@^3.0.0:
73297339
version "3.0.0"
73307340
resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-3.0.0.tgz#5fa1a7623867ff1af6ca3dc72ad6b8a4208beba7"

0 commit comments

Comments
 (0)