Skip to content

Commit 5e18890

Browse files
Merge branch 'main' into develop
2 parents 25a1b8a + fc40502 commit 5e18890

3 files changed

Lines changed: 19 additions & 2 deletions

File tree

cypress/support/commands.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/// <reference types="cypress" />
2+
3+
declare namespace Cypress {
4+
interface Chainable {
5+
searchByQuery(query: string): Chainable<void>
6+
}
7+
}
8+
9+
Cypress.Commands.add('searchByQuery', (query: string) => {
10+
cy.visit('/')
11+
cy.get('input[name=q]').type(query).parent('form').submit()
12+
})

src/env.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createEnv } from '@t3-oss/env-nextjs'
1+
ort { createEnv } from '@t3-oss/env-nextjs'
22
import { z } from 'zod'
33

44
export const env = createEnv({
@@ -14,3 +14,4 @@ export const env = createEnv({
1414
NEXT_PUBLIC_API_BASE_URL: process.env.NEXT_PUBLIC_API_BASE_URL
1515
}
1616
})
17+

tsconfig.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@
22
"compilerOptions": {
33
"types": ["cypress"],
44
"target": "es2022",
5+
56
"lib": ["dom", "dom.iterable", "esnext"],
67
"allowJs": true,
78
"skipLibCheck": true,
89
"strict": true,
910
"noEmit": true,
1011
"esModuleInterop": true,
11-
"module": "esnext",
12+
"module": "es
1213
"moduleDetection": "force",
1314
"allowImportingTsExtensions": true,
1415
"moduleResolution": "bundler",
16+
1517
"resolveJsonModule": true,
1618
"isolatedModules": true,
1719
"jsx": "react-jsx",
@@ -32,10 +34,12 @@
3234
"**/*.tsx",
3335
".next/types/**/*.ts",
3436
".next/dev/types/**/*.ts",
37+
3538
"**/*.mts",
3639
"cypress",
3740
"cypress/**/*.ts",
3841
"cypress/**/*.d.ts"
42+
3943
],
4044
"exclude": ["node_modules"]
4145
}

0 commit comments

Comments
 (0)