@@ -6518,6 +6518,51 @@ tsconfig.json
6518
6518
17: });
6519
6519
````
6520
6520
6521
+ ## File: src/e2e/cypress/e2e/index.cy.ts
6522
+ ````typescript
6523
+ 1: /// <reference types="cypress"/>
6524
+ 2: // https://cheatography.com/aiqbal/cheat-sheets/cypress-io/
6525
+ 3: describe("Forside", () => {
6526
+ 4: beforeEach(() => {
6527
+ 5: //cy.visit("/");
6528
+ 6: // Local:
6529
+ 7: cy.visit("http://localhost:3000");
6530
+ 8: });
6531
+ 9: it(`Hei vises på forsiden`, () => {
6532
+ 10: cy.get('[data-cy="hei"]').contains("Hei!");
6533
+ 11: });
6534
+ 12: it(`Om meg vises på forsiden`, () => {
6535
+ 13: cy.get('[data-cy="Om Meg"]').contains("Om Meg");
6536
+ 14: });
6537
+ 15: it(`Prosjekter vises på forsiden`, () => {
6538
+ 16: cy.get('[data-cy="Prosjekter"]').contains("Prosjekter");
6539
+ 17: });
6540
+ 18: });
6541
+ ````
6542
+
6543
+ ## File: src/e2e/cypress/e2e/kontakt.cy.ts
6544
+ ````typescript
6545
+ 1: /// <reference types="cypress"/>
6546
+ 2: /// <reference types="cypress-axe"/>
6547
+ 3: /// <reference types="axe-core"/>
6548
+ 4: import { checkAccessibility } from "../support/functions";
6549
+ 5: describe("Kontakt", () => {
6550
+ 6: const beVisible = "be.visible";
6551
+ 7: beforeEach(() => {
6552
+ 8: cy.visit("http://localhost:3000/kontakt");
6553
+ 9: });
6554
+ 10: it(`Navn vises`, () => {
6555
+ 11: cy.get("#navn").should(beVisible);
6556
+ 12: });
6557
+ 13: it(`Vi kan skrive navn`, () => {
6558
+ 14: cy.get("#navn").type("Fullt navn").should("have.value", "Fullt navn");
6559
+ 15: });
6560
+ 16: it("Kontakt skal ikke ha noen a11y feilmeldinger", () => {
6561
+ 17: checkAccessibility(5000);
6562
+ 18: });
6563
+ 19: });
6564
+ ````
6565
+
6521
6566
## File: src/e2e/cypress/support/commands.ts
6522
6567
````typescript
6523
6568
1: /// <reference types="cypress" />
@@ -9268,6 +9313,23 @@ tsconfig.json
9268
9313
23: }
9269
9314
````
9270
9315
9316
+ ## File: src/utils/eslint/tsconfig.json
9317
+ ````json
9318
+ 1: {
9319
+ 2: "compilerOptions": {
9320
+ 3: "target": "es2016",
9321
+ 4: "module": "commonjs",
9322
+ 5: "outDir": "./dist",
9323
+ 6: "strict": true,
9324
+ 7: "esModuleInterop": true,
9325
+ 8: "skipLibCheck": true,
9326
+ 9: "forceConsistentCasingInFileNames": true
9327
+ 10: },
9328
+ 11: "include": ["./**/*.ts"],
9329
+ 12: "exclude": ["node_modules"]
9330
+ 13: }
9331
+ ````
9332
+
9271
9333
## File: src/utils/portableTextComponents.tsx
9272
9334
````typescript
9273
9335
1: import Link from "next/link";
@@ -15279,51 +15341,6 @@ tsconfig.json
15279
15341
13: });
15280
15342
````
15281
15343
15282
- ## File: src/e2e/cypress/e2e/index.cy.ts
15283
- ````typescript
15284
- 1: /// <reference types="cypress"/>
15285
- 2: // https://cheatography.com/aiqbal/cheat-sheets/cypress-io/
15286
- 3: describe("Forside", () => {
15287
- 4: beforeEach(() => {
15288
- 5: //cy.visit("/");
15289
- 6: // Local:
15290
- 7: cy.visit("http://localhost:3000");
15291
- 8: });
15292
- 9: it(`Hei vises på forsiden`, () => {
15293
- 10: cy.get('[data-cy="hei"]').contains("Hei!");
15294
- 11: });
15295
- 12: it(`Om meg vises på forsiden`, () => {
15296
- 13: cy.get('[data-cy="Om Meg"]').contains("Om Meg");
15297
- 14: });
15298
- 15: it(`Prosjekter vises på forsiden`, () => {
15299
- 16: cy.get('[data-cy="Prosjekter"]').contains("Prosjekter");
15300
- 17: });
15301
- 18: });
15302
- ````
15303
-
15304
- ## File: src/e2e/cypress/e2e/kontakt.cy.ts
15305
- ````typescript
15306
- 1: /// <reference types="cypress"/>
15307
- 2: /// <reference types="cypress-axe"/>
15308
- 3: /// <reference types="axe-core"/>
15309
- 4: import { checkAccessibility } from "../support/functions";
15310
- 5: describe("Kontakt", () => {
15311
- 6: const beVisible = "be.visible";
15312
- 7: beforeEach(() => {
15313
- 8: cy.visit("http://localhost:3000/kontakt");
15314
- 9: });
15315
- 10: it(`Navn vises`, () => {
15316
- 11: cy.get("#navn").should(beVisible);
15317
- 12: });
15318
- 13: it(`Vi kan skrive navn`, () => {
15319
- 14: cy.get("#navn").type("Fullt navn").should("have.value", "Fullt navn");
15320
- 15: });
15321
- 16: it("Kontakt skal ikke ha noen a11y feilmeldinger", () => {
15322
- 17: checkAccessibility(5000);
15323
- 18: });
15324
- 19: });
15325
- ````
15326
-
15327
15344
## File: src/e2e/cypress/support/functions.ts
15328
15345
````typescript
15329
15346
1: import { Result } from "axe-core";
@@ -15627,23 +15644,6 @@ tsconfig.json
15627
15644
82: };
15628
15645
````
15629
15646
15630
- ## File: src/utils/eslint/tsconfig.json
15631
- ````json
15632
- 1: {
15633
- 2: "compilerOptions": {
15634
- 3: "target": "es2016",
15635
- 4: "module": "commonjs",
15636
- 5: "outDir": "./dist",
15637
- 6: "strict": true,
15638
- 7: "esModuleInterop": true,
15639
- 8: "skipLibCheck": true,
15640
- 9: "forceConsistentCasingInFileNames": true
15641
- 10: },
15642
- 11: "include": ["./**/*.ts"],
15643
- 12: "exclude": ["node_modules"]
15644
- 13: }
15645
- ````
15646
-
15647
15647
## File: studio/package.json
15648
15648
````json
15649
15649
1: {
@@ -17292,51 +17292,52 @@ tsconfig.json
17292
17292
47: "sanity": "^3.92.0",
17293
17293
48: "sitemap": "^8.0.0",
17294
17294
49: "ts-node": "^10.9.2",
17295
- 50: "zod": "^3.24.3",
17296
- 51: "@babel/helpers": ">=7.27.6"
17297
- 52: },
17298
- 53: "devDependencies": {
17299
- 54: "@tailwindcss/postcss": "^4.1.8",
17300
- 55: "@jest/expect": "^29.7.0",
17301
- 56: "@jest/globals": "^29.7.0",
17302
- 57: "@ladle/react": "^5.0.3",
17303
- 58: "@lhci/cli": "^0.14.0",
17304
- 59: "@playwright/test": "^1.51.1",
17305
- 60: "@portabletext/types": "^2.0.13",
17306
- 61: "@testing-library/cypress": "^10.0.3",
17307
- 62: "@testing-library/jest-dom": "^6.6.3",
17308
- 63: "@testing-library/react": "^16.3.0",
17309
- 64: "@testing-library/user-event": "^14.6.1",
17310
- 65: "@types/jest": "^29.5.14",
17311
- 66: "@types/node": "^22.14.1",
17312
- 67: "@types/react": "^19.1.2",
17313
- 68: "@types/react-dom": "^19.1.2",
17314
- 69: "@typescript-eslint/eslint-plugin": "^8.30.1",
17315
- 70: "@typescript-eslint/parser": "^8.30.1",
17316
- 71: "@typescript-eslint/utils": "^8.34.0",
17317
- 72: "axe-core": "^4.10.3",
17318
- 73: "cypress": "14.3.3",
17319
- 74: "cypress-axe": "^1.6.0",
17320
- 75: "eslint": "9.28.0",
17321
- 76: "eslint-config-next": "15.3.3",
17322
- 77: "eslint-plugin-jest": "^28.11.0",
17323
- 78: "eslint-plugin-jsx-a11y": "^6.10.2",
17324
- 79: "eslint-plugin-react": "^7.37.5",
17325
- 80: "eslint-plugin-react-hooks": "^5.2.0",
17326
- 81: "eslint-plugin-test-rules": "file:src/utils/eslint",
17327
- 82: "eslint-plugin-testing-library": "^7.1.1",
17328
- 83: "expect": "^29.7.0",
17329
- 84: "jest-environment-jsdom": "^29.7.0",
17330
- 85: "jest-extended": "^4.0.2",
17331
- 86: "jsdom-testing-mocks": "^1.13.1",
17332
- 87: "postcss": "^8.5.4",
17333
- 88: "prettier": "3.5.3",
17334
- 89: "tailwindcss": "^4.1.8",
17335
- 90: "ts-jest": "^29.3.2",
17336
- 91: "typescript": "^5.8.3",
17337
- 92: "wait-on": "^8.0.3"
17338
- 93: }
17339
- 94: }
17295
+ 50: "zod": "^3.25.58",
17296
+ 51: "@babel/helpers": ">=7.27.6",
17297
+ 52: "tar-fs": ">=3.0.9"
17298
+ 53: },
17299
+ 54: "devDependencies": {
17300
+ 55: "@tailwindcss/postcss": "^4.1.8",
17301
+ 56: "@jest/expect": "^29.7.0",
17302
+ 57: "@jest/globals": "^29.7.0",
17303
+ 58: "@ladle/react": "^5.0.3",
17304
+ 59: "@lhci/cli": "^0.14.0",
17305
+ 60: "@playwright/test": "^1.51.1",
17306
+ 61: "@portabletext/types": "^2.0.13",
17307
+ 62: "@testing-library/cypress": "^10.0.3",
17308
+ 63: "@testing-library/jest-dom": "^6.6.3",
17309
+ 64: "@testing-library/react": "^16.3.0",
17310
+ 65: "@testing-library/user-event": "^14.6.1",
17311
+ 66: "@types/jest": "^29.5.14",
17312
+ 67: "@types/node": "^22.14.1",
17313
+ 68: "@types/react": "^19.1.2",
17314
+ 69: "@types/react-dom": "^19.1.2",
17315
+ 70: "@typescript-eslint/eslint-plugin": "^8.30.1",
17316
+ 71: "@typescript-eslint/parser": "^8.30.1",
17317
+ 72: "@typescript-eslint/utils": "^8.34.0",
17318
+ 73: "axe-core": "^4.10.3",
17319
+ 74: "cypress": "14.3.3",
17320
+ 75: "cypress-axe": "^1.6.0",
17321
+ 76: "eslint": "9.28.0",
17322
+ 77: "eslint-config-next": "15.3.3",
17323
+ 78: "eslint-plugin-jest": "^28.11.0",
17324
+ 79: "eslint-plugin-jsx-a11y": "^6.10.2",
17325
+ 80: "eslint-plugin-react": "^7.37.5",
17326
+ 81: "eslint-plugin-react-hooks": "^5.2.0",
17327
+ 82: "eslint-plugin-test-rules": "file:src/utils/eslint",
17328
+ 83: "eslint-plugin-testing-library": "^7.1.1",
17329
+ 84: "expect": "^29.7.0",
17330
+ 85: "jest-environment-jsdom": "^29.7.0",
17331
+ 86: "jest-extended": "^4.0.2",
17332
+ 87: "jsdom-testing-mocks": "^1.13.1",
17333
+ 88: "postcss": "^8.5.4",
17334
+ 89: "prettier": "3.5.3",
17335
+ 90: "tailwindcss": "^4.1.8",
17336
+ 91: "ts-jest": "^29.3.2",
17337
+ 92: "typescript": "^5.8.3",
17338
+ 93: "wait-on": "^8.0.3"
17339
+ 94: }
17340
+ 95: }
17340
17341
````
17341
17342
17342
17343
## File: src/__tests__/Prosjekter/page.test.tsx
0 commit comments