Files
caperren-com/test/components/navbar.spec.ts
Corwin Perren 2d7f2904a8
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
Add in the loop test for navigable pages, plus test workflow
2025-11-09 15:45:15 -08:00

15 lines
495 B
TypeScript

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