diff --git a/resources/scripts/tsconfig.json b/resources/scripts/tsconfig.json new file mode 100644 index 0000000000..938d4788bb --- /dev/null +++ b/resources/scripts/tsconfig.json @@ -0,0 +1,7 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "types": ["node"] + }, + "include": ["*.ts"] +} diff --git a/tests/Unit/CommitImages.test.tsx b/tests/Unit/CommitImages.test.tsx index 95a82763fd..c6d6329429 100644 --- a/tests/Unit/CommitImages.test.tsx +++ b/tests/Unit/CommitImages.test.tsx @@ -1,7 +1,7 @@ /// import assert from 'node:assert/strict'; -import { test } from 'node:test'; import { renderToStaticMarkup } from 'react-dom/server'; +import { test } from 'vite-plus/test'; import { CommitImages, replaceFailedImage, @@ -37,6 +37,7 @@ const commit: Commit = { has_sponsors_listing: false, has_github_account: true, lane: 0, + timezone: null, created_at: '2026-10-16T10:00:00Z', updated_at: '2026-10-16T10:00:00Z', }, @@ -51,7 +52,7 @@ const commit: Commit = { ], }; -void test('keeps the uploaded image until it fails to load', () => { +test('keeps the uploaded image until it fails to load', () => { assert.ok( renderToStaticMarkup().includes( 'src="/images/missing.webp"', @@ -59,7 +60,7 @@ void test('keeps the uploaded image until it fails to load', () => { ); }); -void test('shows the short image hash instead of the alt text while the image loads', () => { +test('shows the short image hash instead of the alt text while the image loads', () => { const markup = renderToStaticMarkup(); const placeholder = markup.match( /