Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ts with cypress #1508

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/pre-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ jobs:
with:
start: npm start
record: false
config-file: ./cypress/cypress.config.ts
env:
CYPRESS_IRON_SESSION_PWD: ${{ secrets.IRON_SESSION_PWD }}
- name: Upload screenshots 📸
Expand Down
File renamed without changes.
8 changes: 8 additions & 0 deletions cypress/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"noEmit": true,
"types": ["cypress"]
},
"include": ["../node_modules/cypress", "./**/*.ts"]
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"start": "NODE_ENV=production && next start",
"test:end2end:run:mock": "NEXT_PUBLIC_END2END_MOCKING=enabled run-p dev test:end2end:run",
"test:end2end:open:mock": "NEXT_PUBLIC_END2END_MOCKING=enabled run-p dev test:end2end:open",
"test:end2end:run": "cypress run",
"test:end2end:open": "cypress open",
"test:end2end:run": "cypress run --config-file ./cypress/cypress.config.ts",
"test:end2end:open": "cypress open --config-file ./cypress/cypress.config.ts",
"test:end2end:update-snapshots": "jest ./cypress/fixtures/recherche-entreprise/generate.test.ts --silent -u",
"test:unit": "jest --runInBand --testPathIgnorePatterns='clients|cypress'",
"test:api-clients": "jest clients --silent",
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@
"skipLibCheck": true,
"strict": true,
"target": "es6",
"types": ["jest", "webpack-env"],
"plugins": [
{
"name": "next"
}
]
},
"exclude": ["node_modules", "cypress", "cypress.config.ts"],
"exclude": ["node_modules"],
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"]
}
Loading