File tree 13 files changed +75
-276
lines changed
13 files changed +75
-276
lines changed Original file line number Diff line number Diff line change 1
- name : " 🚨 Lint PR 🚨 "
1
+ name : " 🚨 Lint PR"
2
2
3
3
on :
4
4
pull_request_target :
@@ -30,18 +30,18 @@ jobs:
30
30
header : pr-title-lint-error
31
31
message : |
32
32
Hey there and thank you for opening this pull request! 👋🏼
33
-
33
+
34
34
We require pull request titles to follow the [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/) and it looks like your proposed title needs to be adjusted.
35
35
36
36
Details:
37
-
37
+
38
38
```
39
39
${{ steps.lint_pr_title.outputs.error_message }}
40
40
```
41
41
42
42
# Delete a previous comment when the issue has been resolved
43
43
- if : ${{ steps.lint_pr_title.outputs.error_message == null }}
44
44
uses : marocchino/sticky-pull-request-comment@v2
45
- with :
45
+ with :
46
46
header : pr-title-lint-error
47
47
delete : true
Original file line number Diff line number Diff line change 1
- name : Release
1
+ name : 🔖 Release
2
2
3
3
on :
4
4
push :
Original file line number Diff line number Diff line change 8
8
" graphql-server" ,
9
9
" deps" ,
10
10
" database" ,
11
- " release"
11
+ " release" ,
12
+ " web-app"
12
13
]
13
14
}
Original file line number Diff line number Diff line change 2
2
/// <reference types="next/image-types/global" />
3
3
4
4
// NOTE: This file should not be edited
5
- // see https://nextjs.org/docs/basic-features /typescript for more information.
5
+ // see https://nextjs.org/docs/app/building-your-application/configuring /typescript for more information.
Original file line number Diff line number Diff line change 1
1
import { NextIntlClientProvider } from 'next-intl'
2
2
import { getMessages } from 'next-intl/server'
3
3
import { ApolloWrapper } from '@/apollo-client/ApolloWrapper'
4
- import { Metadata } from 'next'
4
+ import type { Metadata , ResolvingMetadata } from 'next'
5
5
import { Header } from '@/components/header'
6
6
import { Footer } from '@/components/footer'
7
7
8
- export const metaData : Metadata = {
9
- title : 'Homepage' ,
10
- description : 'This is the homepage' ,
11
- }
12
-
13
- export default async function LocaleLayout ( {
14
- children,
15
- params : { locale } ,
16
- } : {
8
+ type Props = {
17
9
children : React . ReactNode
18
10
params : { locale : string }
19
- } ) {
11
+ }
12
+
13
+ export async function generateMetadata ( { params } : Props , parent : ResolvingMetadata ) : Promise < Metadata > {
14
+ return {
15
+ title : 'Homepage' ,
16
+ description : 'This is the homepage' ,
17
+ }
18
+ }
19
+
20
+ export default async function LocaleLayout ( { children, params : { locale } } : Props ) {
20
21
// Providing all messages to the client
21
22
// side is the easiest way to get started
22
23
const messages = await getMessages ( )
Original file line number Diff line number Diff line change 1
- import { handlers } from '@/auth' // Referring to the auth.ts we just created
1
+ import { handlers } from '../../../../auth'
2
2
export const { GET , POST } = handlers
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 6
6
*
7
7
* * For more information on how next confiures Jest review this file:
8
8
* {@link https://github.com/vercel/next.js/blob/v14.2.3/packages/next/src/build/jest/jest.ts}
9
+ *
10
+ * As the official documentation is not providing a working example for next.js
11
+ * I reworked the implementation following this discussion:
12
+ * {@link https://github.com/vercel/next.js/discussions/73894}
9
13
*/
10
- import type { Config } from 'jest'
14
+ import { Config } from '@ jest/types '
11
15
import nextJest from 'next/jest.js'
12
16
import { compilerOptions } from './tsconfig.json'
13
17
@@ -17,7 +21,7 @@ const createJestConfig = nextJest({
17
21
} )
18
22
19
23
// Add any custom config to be passed to Jest
20
- const config : Config = {
24
+ const config : Config . InitialOptions = {
21
25
collectCoverage : true ,
22
26
coverageProvider : 'v8' ,
23
27
Original file line number Diff line number Diff line change 1
1
import '@testing-library/jest-dom'
2
+ import 'whatwg-fetch'
3
+ import { TextDecoder , TextEncoder } from 'util'
4
+ Object . assign ( global , { TextDecoder, TextEncoder } )
Original file line number Diff line number Diff line change 2
2
/// <reference types="next/image-types/global" />
3
3
4
4
// NOTE: This file should not be edited
5
- // see https://nextjs.org/docs/basic-features /typescript for more information.
5
+ // see https://nextjs.org/docs/app/building-your-application/configuring /typescript for more information.
Original file line number Diff line number Diff line change 41
41
"@commitlint/config-conventional" : " ^19.2.2" ,
42
42
"@graphql-codegen/cli" : " ^5.0.2" ,
43
43
"@graphql-codegen/named-operations-object" : " ^3.0.0" ,
44
+ "@jest/types" : " ^29.6.3" ,
44
45
"@next/eslint-plugin-next" : " ^14.1.1" ,
45
46
"@repo/eslint-config" : " workspace:*" ,
46
47
"@repo/typescript-config" : " workspace:*" ,
47
48
"@testing-library/jest-dom" : " ^6.4.5" ,
48
49
"@testing-library/react" : " ^15.0.7" ,
49
50
"@types/eslint" : " ^8.56.5" ,
51
+ "@types/jest" : " ^29.5.14" ,
50
52
"@types/node" : " ^20.11.24" ,
51
53
"@types/react" : " ^18.2.61" ,
52
54
"@types/react-dom" : " ^18.2.19" ,
60
62
"prettier" : " ^3.2.5" ,
61
63
"ts-jest" : " ^29.1.2" ,
62
64
"ts-node" : " ^10.9.2" ,
63
- "typescript" : " ^5.4.5"
65
+ "typescript" : " ^5.4.5" ,
66
+ "whatwg-fetch" : " ^3.6.20"
64
67
},
65
68
"engines" : {
66
69
"node" : " >=20"
Original file line number Diff line number Diff line change 11
11
},
12
12
"resolveJsonModule" : true ,
13
13
"skipLibCheck" : true ,
14
- "strict" : true
14
+ "strict" : true ,
15
+ "typeRoots" : [" ./node_modules/@types" ]
15
16
},
16
17
"include" : [
17
18
" **/*.config.js" ,
You can’t perform that action at this time.
0 commit comments