Compare commits

...

3 Commits

Author SHA1 Message Date
ShareVB
2bd17e94cc fix: add tsconfig for playright 2024-06-22 22:54:03 +02:00
ShareVB
f19aeaf418 chore: fix strange corepack message
Fix corepack claiming strange thing : UsageError: This project is configured to use yarn because /home/runner/work/it-tools/it-tools/package.json has a "packageManager" field
2024-06-22 18:33:35 +02:00
sharevb
2ef2b39fbc feat: test that all tools are loading 2024-06-22 18:31:57 +02:00
3 changed files with 25 additions and 1 deletions

View File

@ -138,5 +138,6 @@
"vitest": "^0.34.0",
"workbox-window": "^7.0.0",
"zx": "^7.2.1"
}
},
"packageManager": "pnpm@8.15.3"
}

View File

@ -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`);
});
});
}

8
src/tsconfig.json Normal file
View File

@ -0,0 +1,8 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./*"]
},
},
}