Skip to content

Commit 98a5462

Browse files
committed
Enable react compiler and fix cypress
Signed-off-by: Lukas Schaefer <lukas@lschaefer.xyz>
1 parent cac4c81 commit 98a5462

File tree

7 files changed

+19
-9
lines changed

7 files changed

+19
-9
lines changed

cypress.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const { defineConfig } = require("cypress");
33
module.exports = defineConfig({
44
video: false,
55
e2e: {
6+
baseUrl: "http://localhost:3000",
67
setupNodeEvents(on, config) {
78
// implement node event listeners here
89
},

cypress/e2e/download.cy.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ describe("Download Bundesliga data as JSON and CSV", () => {
4242
});
4343

4444
it("downloads JSON and verifies format", () => {
45-
cy.visit("http://localhost:3000");
4645
cy.request({
4746
method: "GET",
4847
url: `/api/download`,
@@ -82,7 +81,6 @@ describe("Download Bundesliga data as JSON and CSV", () => {
8281
});
8382

8483
it("downloads CSV and verifies format", () => {
85-
cy.visit("http://localhost:3000");
8684
cy.request({
8785
method: "GET",
8886
url: `/api/download`,

cypress/e2e/invite.cy.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ describe("Invite User into league and change some league Settings and run throug
1212
let user2;
1313
let matchdays = [];
1414
// Signs in
15-
cy.visit("http://localhost:3000");
16-
cy.get("#login").click();
17-
cy.contains("Click here for creating an account").click();
15+
cy.visit("/signup");
1816
cy.get("#username").type("Invite 1");
1917
cy.get("#password").type("password");
2018
cy.get(".center > .MuiButtonBase-root").click();

cypress/e2e/predictions.cy.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ describe("Create Predictions league and do some simple predictions.", () => {
77
// Used to signup change username and password and login again
88
it("invite", () => {
99
// Signs in
10-
cy.visit("http://localhost:3000");
11-
cy.get("#login").click();
12-
cy.contains("Click here for creating an account").click();
10+
cy.visit("/signup");
1311
cy.get("#username").type("Predictions 1");
1412
cy.get("#password").type("password");
1513
cy.get(".center > .MuiButtonBase-root").click();

next.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const nextConfig = {
88
images: {
99
minimumCacheTTL: 60 * 60 * 24 * 365, // There are no dynamic images used here.
1010
},
11+
reactCompiler: true,
1112
};
1213

1314
module.exports = nextConfig;

package-lock.json

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
"dbtypes:check": "kysely-codegen --url ./test.db --out-file ./types/db.ts --verify --log-level=error"
2626
},
2727
"dependencies": {
28-
"@types/better-sqlite3": "^7.6.13",
2928
"@emotion/react": "^11.14.0",
3029
"@emotion/styled": "^11.14.1",
3130
"@mui/material": "^7.1.1",
31+
"@types/better-sqlite3": "^7.6.13",
3232
"bcrypt": "^6.0.0",
3333
"better-sqlite3": "^12.0.0",
3434
"chart.js": "^4.5.0",
@@ -54,6 +54,7 @@
5454
"@types/react": "^19.1.6",
5555
"@typescript-eslint/eslint-plugin": "^8.35.0",
5656
"@typescript-eslint/parser": "^8.35.0",
57+
"babel-plugin-react-compiler": "^1.0.0",
5758
"cypress": "^15.0.0",
5859
"eslint": "^9.29.0",
5960
"eslint-config-next": "^16.1.6",

0 commit comments

Comments
 (0)