Skip to content

Commit 2497c43

Browse files
committed
fixing
1 parent 6a8b9bb commit 2497c43

File tree

3 files changed

+2
-18
lines changed

3 files changed

+2
-18
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
8-
"build": "tsc && yarn test && vite build",
8+
"build": "tsc && yarn test --run && vite build",
99
"preview": "vite preview",
1010
"tauri": "tauri",
1111
"knip": "knip",

src/_common/components/Alert.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
/* eslint-disable react/prop-types */
2-
"use client";
3-
4-
import * as React from "react";
52
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
63
import { cn } from "../utils/utils";
4+
import React from "react";
75

86
const AlertDialog = AlertDialogPrimitive.Root;
97

src/stats/components/SeasonSelector.test.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,6 @@ describe("getSeasons", () => {
8585

8686
const seasons = getSeasons(firstDataAt, lastDataAt);
8787

88-
console.log("Test case - seasons returned:", seasons.length);
89-
seasons.forEach((season, index) => {
90-
console.log(
91-
`${index}: startDate: ${season.startDate.toString()}, endDate: ${season.endDate.toString()}`
92-
);
93-
});
94-
9588
// Should return 3 seasons including 2025-2026
9689
expect(seasons).toHaveLength(3);
9790

@@ -124,13 +117,6 @@ describe("getSeasons", () => {
124117

125118
const seasons = getSeasons(firstDataAt, lastDataAt);
126119

127-
console.log("Bug reproduction test - seasons returned:", seasons.length);
128-
seasons.forEach((season, index) => {
129-
console.log(
130-
`${index}: startDate: ${season.startDate.toString()}, endDate: ${season.endDate.toString()}`
131-
);
132-
});
133-
134120
// Should return 3 seasons:
135121
// 1. 2023-2024 (Nov 2023 falls in this season)
136122
// 2. 2024-2025

0 commit comments

Comments
 (0)