Add in the loop test for navigable pages, plus test workflow
Some checks failed
Build and Test - Staging / test (pull_request) Failing after 27s
Build and Test - Staging / build_and_push (pull_request) Has been skipped
Build and Test - Staging / deploy_staging (pull_request) Has been skipped

This commit is contained in:
2025-11-09 15:45:15 -08:00
parent 6bb862e6e5
commit 2d7f2904a8
8 changed files with 131 additions and 99 deletions

View File

@@ -1,15 +1,15 @@
import { experimental_AstroContainer as AstroContainer } from 'astro/container';
import { expect, test } from 'vitest';
import Navbar from "@components/Navbar.js"
import Navbar from "@components/Navbar.astro"
test('Card with slots', async () => {
const container = await AstroContainer.create();
const result = await container.renderToString(Card, {
const result = await container.renderToString(Navbar, {
slots: {
default: 'Card content',
},
});
expect(result).toContain('This is a card');
expect(result).toContain('Card content');
// expect(result).toContain('This is a card');
// expect(result).toContain('Card content');
});