File tree Expand file tree Collapse file tree 6 files changed +40
-4
lines changed Expand file tree Collapse file tree 6 files changed +40
-4
lines changed Original file line number Diff line number Diff line change
1
+ import { screen , render } from '@testing-library/react' ;
2
+ import '@testing-library/jest-dom/extend-expect' ;
3
+ import FeaturesSection from '../src/pages/components/FeaturesSection' ;
4
+
5
+ describe ( '<FeaturesSection />' , ( ) => {
6
+ it ( 'renders the core features section' , ( ) => {
7
+ render ( < FeaturesSection /> )
8
+ } )
9
+ } ) ;
Original file line number Diff line number Diff line change
1
+ /** @type {import('ts-jest').JestConfigWithTsJest } */
2
+ module . exports = {
3
+ preset : 'ts-jest' ,
4
+ testEnvironment : 'jsdom' ,
5
+ transform : {
6
+ // '^.+\\.[tj]sx?$' to process js/ts with `ts-jest`
7
+ // '^.+\\.m?[tj]sx?$' to process js/ts/mjs/mts with `ts-jest`
8
+ '^.+\\.tsx?$' : [
9
+ 'ts-jest' ,
10
+ {
11
+ tsconfig : 'tsconfig.jest.json' ,
12
+ } ,
13
+ ] ,
14
+ } ,
15
+ } ;
Original file line number Diff line number Diff line change 7
7
"dev" : " next dev" ,
8
8
"postinstall" : " prisma generate" ,
9
9
"lint" : " next lint" ,
10
- "start" : " next start"
10
+ "start" : " next start" ,
11
+ "test" : " jest"
11
12
},
12
13
"dependencies" : {
13
14
"@headlessui/react" : " ^1.7.5" ,
30
31
"devDependencies" : {
31
32
"@testing-library/jest-dom" : " ^5.16.5" ,
32
33
"@testing-library/react" : " ^13.4.0" ,
34
+ "@types/jest" : " ^29.2.5" ,
33
35
"@types/node" : " ^18.0.0" ,
34
36
"@types/react" : " ^18.0.14" ,
35
37
"@types/react-dom" : " ^18.0.5" ,
39
41
"autoprefixer" : " ^10.4.7" ,
40
42
"eslint" : " ^8.26.0" ,
41
43
"eslint-config-next" : " 13.0.2" ,
44
+ "jest" : " ^29.3.1" ,
45
+ "jest-environment-jsdom" : " ^29.3.1" ,
42
46
"postcss" : " ^8.4.14" ,
43
47
"prettier" : " ^2.7.1" ,
44
48
"prettier-plugin-tailwindcss" : " ^0.1.13" ,
45
49
"prisma" : " ^4.5.0" ,
46
50
"tailwindcss" : " ^3.2.0" ,
47
- "typescript" : " ^4.8.4"
51
+ "ts-jest" : " ^29.0.3" ,
52
+ "typescript" : " ^4.9.4"
48
53
},
49
54
"ct3aMetadata" : {
50
55
"initVersion" : " 6.11.3"
Original file line number Diff line number Diff line change @@ -6,12 +6,13 @@ generator client {
6
6
}
7
7
8
8
datasource db {
9
- provider = " sqlite "
9
+ provider = " mysql "
10
10
url = env (" DATABASE_URL " )
11
+ relationMode = " prisma "
11
12
}
12
13
13
14
model User {
14
- id String @id @default (cuid () )
15
+ id String @id @default (cuid () )
15
16
name String
16
17
email String
17
18
admin Boolean @default (false )
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ {
2
+ "extends" : " ./tsconfig.json" ,
3
+ "compilerOptions" : {
4
+ "jsx" : " react-jsx"
5
+ }
6
+ }
You can’t perform that action at this time.
0 commit comments