Skip to content
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
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -191,4 +191,7 @@ dist/**/*.js.map
.firebase/

# nx cache
.nx/cache
.nx/cache

# Python
.mypy_cache
4 changes: 4 additions & 0 deletions .markdownlintignore
Original file line number Diff line number Diff line change
Expand Up @@ -200,5 +200,9 @@ dist/**/*.js.map
# Claude Code agent tooling (not shipped product)
.claude/

# Python
.mypy_cache


# Ignore minified files
*.min.*
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -201,5 +201,9 @@ dist/**/*.js.map
# Claude Code agent tooling (not shipped product)
.claude/

# Python
.mypy_cache


# Ignore minified files
*.min.*
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": {
"types": ["cypress", "cypress-axe", "node"]
},
"include": ["**/*.ts", "../cypress.config.ts"],
"exclude": []
}
6 changes: 3 additions & 3 deletions docs/usage/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ The testing setup in this codebase uses Cypress for end-to-end (E2E) testing. Th
### Key Elements

- **Cypress Configuration**: The Cypress configuration file defines the settings and options for running tests.
- **Test Files**: Test files are located in the `cypress/e2e` directory.
- **Support Files**: Support files are located in the `cypress/support` directory and include custom commands and global configuration.
- **Test Files**: End-to-end test specs are located in [cypress/e2e/landing.cy.ts](../../cypress/e2e/landing.cy.ts) and related files in the same directory.
- **Support Files**: Cypress support files are located in [cypress/support/e2e.ts](../../cypress/support/e2e.ts) and [cypress/support/commands.ts](../../cypress/support/commands.ts).

### Flowchart

Expand Down Expand Up @@ -90,7 +90,7 @@ This command runs the following checks in order:

1. **Prettier**: Ensures code formatting is consistent.
2. **ESLint**: Checks for code quality and potential issues.
3. **TypeScript**: Ensures type safety with `tsc --noEmit`.
3. **TypeScript**: Ensures type safety by running `npm run tsc` (root `tsconfig.json` and `cypress/tsconfig.json`).
4. **Jest**: Runs unit tests.
5. **Cypress**: Runs end-to-end tests.
6. **Build**: Ensures the project builds successfully with `next build`.
Expand Down
1 change: 0 additions & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import "./.next/types/routes.d.ts";

// NOTE: This file should not be edited
Expand Down
5 changes: 5 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ const isDevelopment = process.env.NEXT_PUBLIC_ENVIRONMENT === 'development';

const nextConfig = {
images: {
// SVGs are handled by @svgr/webpack (see turbopack.rules) and no other
// image types are statically imported, so disable Next's static image
// imports. This also removes Next's ambient `*.svg` declaration, which
// conflicts with the @svgr/webpack-accurate one in types/svg.d.ts.
disableStaticImages: true,
remotePatterns: [
{
protocol: 'https',
Expand Down
Loading
Loading