Skip to content

Commit 6824231

Browse files
authored
removed baseUrl, switched to Vite 8, cleanup (#255)
1 parent 5362f16 commit 6824231

File tree

13 files changed

+160
-159
lines changed

13 files changed

+160
-159
lines changed

env.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/// <reference types="vite/client" />
22
/// <reference types="vitest" />
3-
/// <reference types="@testing-library/jest-dom" />
43

54
interface ImportMetaEnv {
65
readonly BASE?: string;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"tailwindcss": "4.1.18",
3838
"typescript": "5.9.3",
3939
"typescript-eslint": "8.50.0",
40-
"vite": "npm:rolldown-vite@7.3.0",
40+
"vite": "8.0.0-beta.4",
4141
"vite-plugin-checker": "0.12.0",
4242
"vite-plugin-solid": "2.11.10",
4343
"vite-tsconfig-paths": "6.0.3",

pnpm-lock.yaml

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

src/ClockFace.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { ClockHands } from 'ClockHands';
2-
import { getTestId } from 'utilities';
3-
import { Graduations } from 'Graduations';
1+
import { ClockHands } from '@/ClockHands';
2+
import { getTestId } from '@/utilities';
3+
import { Graduations } from '@/Graduations';
44

55
export const ClockFace = () => (
66
<div

src/ClockHands.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { createSignal, onCleanup } from 'solid-js';
2-
import { ClockLine as ClockHand } from 'ClockLine';
3-
import { hours, rotate, seconds } from 'common';
4-
import { getTestId } from 'utilities';
2+
import { ClockLine as ClockHand } from '@/ClockLine';
3+
import { hours, rotate, seconds } from '@/common';
4+
import { getTestId } from '@/utilities';
55

66
const getSecondsSinceMidnight = (): number =>
77
(Date.now() - new Date().setHours(0, 0, 0, 0)) / 1000;

src/Graduations.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { For } from 'solid-js';
2-
import { ClockLine as Graduation } from 'ClockLine';
3-
import { rotate, seconds } from 'common';
2+
import { ClockLine as Graduation } from '@/ClockLine';
3+
import { rotate, seconds } from '@/common';
44

55
export const Graduations = () => (
66
<>

src/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import 'index.css';
1+
import '@/index.css';
22
import { render } from 'solid-js/web';
3-
import { ClockFace } from 'ClockFace';
3+
import { ClockFace } from '@/ClockFace';
44

55
render(() => <ClockFace />, document.body);

test/ClockFace.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { describe, expect, test } from 'vitest';
22
import { render, screen } from '@solidjs/testing-library';
3-
import { ClockFace } from 'ClockFace';
3+
import { ClockFace } from '@/ClockFace';
44

55
describe('<ClockFace />', () => {
66
test('renders clock face', () => {
77
render(() => <ClockFace />);
8-
expect(screen.getByTestId('clock-face')).toBeInTheDocument();
8+
expect(screen.getByTestId('clock-face'));
99
});
1010
test('unmount clock face', () => {
1111
const { unmount } = render(() => <ClockFace />);

test/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { render } from 'solid-js/web';
44
describe('index', () => {
55
test('renders without crashing', async () => {
66
vi.mock('solid-js/web', { spy: true });
7-
await import('index');
7+
await import('@/index');
88
expect(render).toHaveBeenCalledWith(expect.any(Function), document.body);
99
});
1010
});

test/utilitiest.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { afterAll, beforeAll, describe, expect, vi, test } from 'vitest';
2-
import { getTestId } from 'utilities';
2+
import { getTestId } from '@/utilities';
33

44
beforeAll(() => void vi.stubEnv('MODE', 'development'));
55
afterAll(() => void vi.unstubAllEnvs());

0 commit comments

Comments
 (0)