Skip to content

Commit

Permalink
Test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic committed Nov 19, 2024
1 parent f394538 commit 0c06031
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { glob } from 'astro/loaders';
const reptiles = defineCollection({
loader: glob({
pattern: '*.mdx',
base: new URL('../../content-outside-src-mdx', import.meta.url),
base: new URL('../content-outside-src-mdx', import.meta.url),
}),
schema: () =>
z.object({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const birds = defineCollection({
});

// Absolute paths should also work
const absoluteRoot = new URL('space', import.meta.url);
const absoluteRoot = new URL('content/space', import.meta.url);

const spacecraft = defineCollection({
loader: glob({ pattern: '*.md', base: absoluteRoot }),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export const collections = { blog };
const fixture = await createFixture({
...baseFileTree,
'/src/content/banners/welcome.json': `{ "src": "/example", "alt": "Welcome" }`,
'/src/content.config.ts': `\
'/src/content/config.ts': `\
import { z, defineCollection } from 'astro:content';
const banners = defineCollection({
Expand Down

0 comments on commit 0c06031

Please sign in to comment.