DEV Community

Peter Jacxsens profile picture

Peter Jacxsens

Front-end developer

Location Belgium Joined Joined on  github website twitter website

Education

self taught

5. Mocking usePathName, useSearchParams and useRouter with Jest in Next 15

5. Mocking usePathName, useSearchParams and useRouter with Jest in Next 15

Comments
11 min read

Want to connect with Peter Jacxsens?

Create an account to connect with Peter Jacxsens. You can also sign in below to proceed if you already have an account.

Already have an account? Sign in
4. Testing (async) searchParams with Jest in Next 15

4. Testing (async) searchParams with Jest in Next 15

Comments
6 min read
3. How to setup Jest in a Next 15 project (+ eslint for testing)

3. How to setup Jest in a Next 15 project (+ eslint for testing)

Comments
6 min read
2. An example of using searchParams, useSearchParams and Next router in Next 15

2. An example of using searchParams, useSearchParams and Next router in Next 15

Comments
4 min read
1. Synchronous and asynchronous searchParams in Next 15

1. Synchronous and asynchronous searchParams in Next 15

5
Comments
4 min read
21/ NextAuth + Strapi: Final pieces and conclusion

21/ NextAuth + Strapi: Final pieces and conclusion

12
Comments 9
4 min read
20/ Change password flow in Strapi and NextAuth CredentialsProvider

20/ Change password flow in Strapi and NextAuth CredentialsProvider

5
Comments
7 min read
19/ Updating the userdata in Strapi and NextAuth

19/ Updating the userdata in Strapi and NextAuth

Comments
9 min read
18/ Edit username form and custom Strapi route and controller

18/ Edit username form and custom Strapi route and controller

2
Comments 3
8 min read
17/ Change password flow in Strapi and NextAuth

17/ Change password flow in Strapi and NextAuth

2
Comments
5 min read
16/ Forgot password flow with Strapi and NextAuth

16/ Forgot password flow with Strapi and NextAuth

4
Comments
10 min read
15/ Sending email confirmations in Strapi

15/ Sending email confirmations in Strapi

5
Comments 2
10 min read
14/ Signing up with NextAuth CredentialsProvider using server actions and useFormState

14/ Signing up with NextAuth CredentialsProvider using server actions and useFormState

9
Comments
7 min read
13/ Signing up with the NextAuth CredentialsProvider

13/ Signing up with the NextAuth CredentialsProvider

12
Comments
6 min read
12/ Error handling in our form component for the NextAuth CredentialsProvider

12/ Error handling in our form component for the NextAuth CredentialsProvider

2
Comments
6 min read
11/ How to handle errors in the NextAuth authorize function / CredentialsProvider

11/ How to handle errors in the NextAuth authorize function / CredentialsProvider

13
Comments
6 min read
10/ NextAuth CredentialsProvider: signing in

10/ NextAuth CredentialsProvider: signing in

5
Comments
9 min read
9/ How to add error handling to NextAuth GoogleProvider

9/ How to add error handling to NextAuth GoogleProvider

26
Comments
9 min read
8/ Using NextAuth GoogleProvider to put a user into the Strapi database

8/ Using NextAuth GoogleProvider to put a user into the Strapi database

6
Comments 1
9 min read
7/ NextAuth callback functions explained

7/ NextAuth callback functions explained

18
Comments 2
7 min read
6/ NextAuth: creating a custom login page

6/ NextAuth: creating a custom login page

22
Comments 1
8 min read
5/ NextAuth with GoogleProvider: sessions

5/ NextAuth with GoogleProvider: sessions

8
Comments
5 min read
4/ NextAuth with GoogleProvider: signing in

4/ NextAuth with GoogleProvider: signing in

10
Comments 1
6 min read
3/ NextAuth v4: introduction

3/ NextAuth v4: introduction

15
Comments
4 min read
2/ Next + NextAuth + Strapi: setting up our project

2/ Next + NextAuth + Strapi: setting up our project

8
Comments
5 min read
1/ Full guide for authentication with Next 14 + NextAuth 4 + Strapi v4 using Google and credentials provider

1/ Full guide for authentication with Next 14 + NextAuth 4 + Strapi v4 using Google and credentials provider

51
Comments
2 min read
Suspense, client components and static rendering in Next 13

Suspense, client components and static rendering in Next 13

3
Comments 4
7 min read
Using loading.js and Suspense in Next 13

Using loading.js and Suspense in Next 13

10
Comments
9 min read
How to mock useSearchParams() and useRouter() with Jest in Next 13 (next/navigation)

How to mock useSearchParams() and useRouter() with Jest in Next 13 (next/navigation)

19
Comments 3
7 min read
How to mock URLSearchParams and searchParams with Jest

How to mock URLSearchParams and searchParams with Jest

6
Comments
6 min read
Using searchParams, useSearchParams and useRouter in Next 13

Using searchParams, useSearchParams and useRouter in Next 13

26
Comments 2
7 min read
8./ Conclusion: client and server components in static and dynamic routes in Next 13

8./ Conclusion: client and server components in static and dynamic routes in Next 13

12
Comments 2
2 min read
6./ Nesting client and server components in Next 13

6./ Nesting client and server components in Next 13

11
Comments 5
5 min read
7./ The useSearchParams hook in Next 13

7./ The useSearchParams hook in Next 13

10
Comments 2
9 min read
5./ Dynamic and static rendering of client and server components

5./ Dynamic and static rendering of client and server components

7
Comments 2
6 min read
4./ Client components in static and dynamic routes before Next 13

4./ Client components in static and dynamic routes before Next 13

7
Comments
6 min read
3./ Static and dynamic rendering in Next 13

3./ Static and dynamic rendering in Next 13

12
Comments 2
4 min read
2./ Client and server components in Next 13

2./ Client and server components in Next 13

13
Comments 1
4 min read
1./ A deep dive into client and server component versus static and dynamic rendering in Next 13: Intro

1./ A deep dive into client and server component versus static and dynamic rendering in Next 13: Intro

6
Comments
2 min read
How to test a component passed as prop with Jest

How to test a component passed as prop with Jest

12
Comments
5 min read
3 tips for setting up Jest and rtl for Next.js

3 tips for setting up Jest and rtl for Next.js

2
Comments
3 min read
How to mock Next router with Jest

How to mock Next router with Jest

35
Comments 5
8 min read
Setting up tests with mocks and more mocking examples (Jest mocking + React part 4)

Setting up tests with mocks and more mocking examples (Jest mocking + React part 4)

4
Comments
8 min read
Returning values from mocks (Jest mocking + React part 3)

Returning values from mocks (Jest mocking + React part 3)

5
Comments
10 min read
Mocking React components (Jest mocking + React part 2)

Mocking React components (Jest mocking + React part 2)

23
Comments 10
8 min read
Introduction to Jest mocking (Jest mocking + React part 1)

Introduction to Jest mocking (Jest mocking + React part 1)

17
Comments
8 min read
Lessons I learned as a Jest and React Testing Library beginner

Lessons I learned as a Jest and React Testing Library beginner

3
Comments
7 min read
using google-api-javascript-client (gapi) with no authentication [code example]

using google-api-javascript-client (gapi) with no authentication [code example]

8
Comments
1 min read
Customizing Yoast SEO's structured data with schema API part 4

Customizing Yoast SEO's structured data with schema API part 4

7
Comments
6 min read
Customizing Yoast SEO's structured data with schema API part 3

Customizing Yoast SEO's structured data with schema API part 3

9
Comments 2
7 min read
Customizing Yoast SEO's structured data with schema API part 2

Customizing Yoast SEO's structured data with schema API part 2

5
Comments 1
4 min read
Customizing Yoast SEO's structured data with schema API part 1

Customizing Yoast SEO's structured data with schema API part 1

6
Comments
4 min read
loading...