Skip to content

Commit a2dc0ee

Browse files
Only pass required episode props
1 parent 268460f commit a2dc0ee

File tree

14 files changed

+1561
-28
lines changed

14 files changed

+1561
-28
lines changed

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
"preview": "astro preview",
1515
"astro": "astro",
1616
"db:seed": "pnpm astro db execute db/seed.ts --remote",
17+
"test": "vitest",
18+
"test:run": "vitest run",
1719
"test:e2e": "pnpm exec playwright test"
1820
},
1921
"dependencies": {
@@ -38,16 +40,20 @@
3840
"@tailwindcss/forms": "^0.5.10",
3941
"@tailwindcss/typography": "^0.5.19",
4042
"@tailwindcss/vite": "^4.1.14",
43+
"@testing-library/jest-dom": "^6.9.1",
44+
"@testing-library/preact": "^3.2.4",
4145
"@types/html-to-text": "^9.0.4",
4246
"@types/node": "^22.18.11",
4347
"html-to-text": "^9.0.5",
48+
"jsdom": "^27.0.1",
4449
"prettier": "^3.6.2",
4550
"prettier-plugin-astro": "^0.14.1",
4651
"prettier-plugin-tailwindcss": "^0.6.14",
4752
"sharp": "^0.33.5",
4853
"tailwindcss": "^4.1.14",
4954
"typescript": "^5.9.3",
50-
"vite": "^6.4.0"
55+
"vite": "^6.4.0",
56+
"vitest": "^3.2.4"
5157
},
5258
"engines": {
5359
"node": "^22.0.0"

playwright.config.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { defineConfig, devices } from '@playwright/test';
1010
* See https://playwright.dev/docs/test-configuration.
1111
*/
1212
export default defineConfig({
13-
testDir: './tests',
13+
testDir: './tests/e2e',
1414
/* Run tests in files in parallel */
1515
fullyParallel: true,
1616
/* Fail the build on CI if you accidentally left test.only in the source code. */
@@ -27,25 +27,25 @@ export default defineConfig({
2727
baseURL: 'http://localhost:4321',
2828

2929
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
30-
trace: 'on-first-retry',
30+
trace: 'on-first-retry'
3131
},
3232

3333
/* Configure projects for major browsers */
3434
projects: [
3535
{
3636
name: 'chromium',
37-
use: { ...devices['Desktop Chrome'] },
37+
use: { ...devices['Desktop Chrome'] }
3838
},
3939

4040
{
4141
name: 'firefox',
42-
use: { ...devices['Desktop Firefox'] },
42+
use: { ...devices['Desktop Firefox'] }
4343
},
4444

4545
{
4646
name: 'webkit',
47-
use: { ...devices['Desktop Safari'] },
48-
},
47+
use: { ...devices['Desktop Safari'] }
48+
}
4949

5050
/* Test against mobile viewports. */
5151
// {
@@ -72,6 +72,6 @@ export default defineConfig({
7272
webServer: {
7373
command: 'pnpm dev',
7474
url: 'http://localhost:4321',
75-
reuseExistingServer: !process.env.CI,
76-
},
75+
reuseExistingServer: !process.env.CI
76+
}
7777
});

0 commit comments

Comments
 (0)