diff --git a/package.json b/package.json index c6cb7757..d1e6e458 100644 --- a/package.json +++ b/package.json @@ -138,5 +138,6 @@ "vitest": "^0.34.0", "workbox-window": "^7.0.0", "zx": "^7.2.1" - } + }, + "packageManager": "pnpm@8.15.3" } diff --git a/src/tools/all-tools.e2e.spec.ts b/src/tools/all-tools.e2e.spec.ts new file mode 100644 index 00000000..2a11bdd1 --- /dev/null +++ b/src/tools/all-tools.e2e.spec.ts @@ -0,0 +1,15 @@ +import { expect, test } from '@playwright/test'; +import _ from 'lodash'; +import { toolsByCategory } from './index'; + +for (const tool of _.flatten(toolsByCategory.map(category => category.components))) { + test.describe(`Tool - ${tool.name}`, () => { + test.beforeEach(async ({ page }) => { + await page.goto(tool.path); + }); + + test('Loads correctly (has correct title)', async ({ page }) => { + await expect(page).toHaveTitle(`${tool.name} - IT Tools`); + }); + }); +} diff --git a/src/tsconfig.json b/src/tsconfig.json new file mode 100644 index 00000000..c4b3d604 --- /dev/null +++ b/src/tsconfig.json @@ -0,0 +1,8 @@ +{ + "compilerOptions": { + "baseUrl": ".", + "paths": { + "@/*": ["./*"] + }, + }, +} \ No newline at end of file