Compare commits

...

4 commits

Author SHA1 Message Date
093b15c881
test: initialize cypress e2e testing library
All checks were successful
container-scan / Container Scan (pull_request) Successful in 3m9s
docker-build / docker (pull_request) Successful in 3m30s
2025-05-12 21:42:25 +02:00
749c747b3a Merge pull request 'fix(deps): update dependency lucide-react to ^0.510.0' (#53)
All checks were successful
docker-build / docker (push) Successful in 1m1s
container-scan / Container Scan (push) Successful in 1m13s
Reviewed-on: #53
Reviewed-by: Dominik <mail@dominikstahl.dev>
2025-05-12 19:37:01 +00:00
b34f45230c fix(deps): update dependency lucide-react to ^0.510.0
All checks were successful
container-scan / Container Scan (pull_request) Successful in 2m15s
docker-build / docker (push) Successful in 5m47s
docker-build / docker (pull_request) Successful in 3m10s
2025-05-12 14:01:09 +00:00
04c65cd584 chore(deps): update dependency @types/react-dom to v19.1.4
All checks were successful
docker-build / docker (push) Successful in 1m2s
container-scan / Container Scan (push) Successful in 2m14s
2025-05-12 13:00:43 +00:00
8 changed files with 1343 additions and 84 deletions

16
cypress.config.ts Normal file
View file

@ -0,0 +1,16 @@
import { defineConfig } from 'cypress';
export default defineConfig({
e2e: {
setupNodeEvents(on, config) {
// implement node event listeners here
},
},
component: {
devServer: {
framework: 'next',
bundler: 'webpack',
},
},
});

View file

@ -0,0 +1,5 @@
{
"name": "Using fixtures to represent data",
"email": "hello@cypress.io",
"body": "Fixtures are a great way to mock data for responses to routes"
}

View file

@ -0,0 +1,37 @@
/// <reference types="cypress" />
// ***********************************************
// This example commands.ts shows you how to
// create various custom commands and overwrite
// existing commands.
//
// For more comprehensive examples of custom
// commands please read more here:
// https://on.cypress.io/custom-commands
// ***********************************************
//
//
// -- This is a parent command --
// Cypress.Commands.add('login', (email, password) => { ... })
//
//
// -- This is a child command --
// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
//
//
// -- This is a dual command --
// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
//
//
// -- This will overwrite an existing command --
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
//
// declare global {
// namespace Cypress {
// interface Chainable {
// login(email: string, password: string): Chainable<void>
// drag(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
// dismiss(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
// visit(originalFn: CommandOriginalFn, url: string, options: Partial<VisitOptions>): Chainable<Element>
// }
// }
// }

View file

@ -0,0 +1,14 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<title>Components App</title>
<!-- Used by Next.js to inject CSS. -->
<div id="__next_css__DO_NOT_USE__"></div>
</head>
<body>
<div data-cy-root></div>
</body>
</html>

View file

@ -0,0 +1,36 @@
// ***********************************************************
// This example support/component.ts is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
// behavior that modifies Cypress.
//
// You can change the location of this file or turn off
// automatically serving support files with the
// 'supportFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/configuration
// ***********************************************************
// Import commands.js using ES2015 syntax:
import './commands';
import { mount } from 'cypress/react';
// Augment the Cypress namespace to include type definitions for
// your custom command.
// Alternatively, can be defined in cypress/support/component.d.ts
// with a <reference path="./component" /> at the top of your spec.
declare global {
namespace Cypress {
interface Chainable {
mount: typeof mount;
}
}
}
Cypress.Commands.add('mount', mount);
// Example use:
// cy.mount(<MyComponent />)

17
cypress/support/e2e.ts Normal file
View file

@ -0,0 +1,17 @@
// ***********************************************************
// This example support/e2e.ts is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
// behavior that modifies Cypress.
//
// You can change the location of this file or turn off
// automatically serving support files with the
// 'supportFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/configuration
// ***********************************************************
// Import commands.js using ES2015 syntax:
import './commands';

View file

@ -5,9 +5,12 @@
"scripts": {
"dev": "next dev --turbopack",
"build": "prettier --check . && next build",
"start": "next start",
"start": "node .next/standalone/server.js",
"lint": "next lint",
"format": "prettier --write ."
"format": "prettier --write .",
"cypress:open": "cypress open",
"cypress:run": "cypress run",
"test": "start-server-and-test "
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.7.2",
@ -26,7 +29,7 @@
"@radix-ui/react-tabs": "^1.1.11",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"lucide-react": "^0.509.0",
"lucide-react": "^0.510.0",
"next": "15.3.2",
"next-auth": "^5.0.0-beta.25",
"next-themes": "^0.4.6",
@ -39,7 +42,8 @@
"@tailwindcss/postcss": "4.1.6",
"@types/node": "22.15.17",
"@types/react": "19.1.3",
"@types/react-dom": "19.1.3",
"@types/react-dom": "19.1.4",
"cypress": "14.3.3",
"eslint": "9.26.0",
"eslint-config-next": "15.3.2",
"eslint-config-prettier": "10.1.5",

1290
yarn.lock

File diff suppressed because it is too large Load diff