summaryrefslogtreecommitdiff
path: root/packages/astro/test/astro-sync.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/astro/test/astro-sync.test.js')
-rw-r--r--packages/astro/test/astro-sync.test.js26
1 files changed, 13 insertions, 13 deletions
diff --git a/packages/astro/test/astro-sync.test.js b/packages/astro/test/astro-sync.test.js
index f12fb5bc4..c8a2de49c 100644
--- a/packages/astro/test/astro-sync.test.js
+++ b/packages/astro/test/astro-sync.test.js
@@ -123,15 +123,15 @@ describe('astro sync', () => {
fixture.thenFileShouldExist('.astro/types.d.ts');
fixture.thenFileContentShouldInclude(
'.astro/types.d.ts',
- `/// <reference path="astro/content.d.ts" />`,
+ `/// <reference path="content.d.ts" />`,
);
- fixture.thenFileShouldExist('.astro/astro/content.d.ts');
+ fixture.thenFileShouldExist('.astro/content.d.ts');
fixture.thenFileContentShouldInclude(
- '.astro/astro/content.d.ts',
+ '.astro/content.d.ts',
`declare module 'astro:content' {`,
'Types file does not include `astro:content` module declaration',
);
- fixture.thenFileShouldBeValidTypescript('.astro/astro/content.d.ts');
+ fixture.thenFileShouldBeValidTypescript('.astro/content.d.ts');
});
it('Writes types for empty collections', async () => {
@@ -139,7 +139,7 @@ describe('astro sync', () => {
fixture.clean();
await fixture.whenSyncing();
fixture.thenFileContentShouldInclude(
- '.astro/astro/content.d.ts',
+ '.astro/content.d.ts',
`"blog": Record<string, {
id: string;
slug: string;
@@ -151,7 +151,7 @@ describe('astro sync', () => {
'Types file does not include empty collection type',
);
fixture.thenFileContentShouldInclude(
- '.astro/astro/content.d.ts',
+ '.astro/content.d.ts',
`"blogMeta": Record<string, {
id: string;
collection: "blogMeta";
@@ -170,11 +170,11 @@ describe('astro sync', () => {
fixture.thenFileShouldExist('.astro/types.d.ts');
fixture.thenFileContentShouldInclude(
'.astro/types.d.ts',
- `/// <reference path="astro/env.d.ts" />`,
+ `/// <reference path="env.d.ts" />`,
);
- fixture.thenFileShouldExist('.astro/astro/env.d.ts');
+ fixture.thenFileShouldExist('.astro/env.d.ts');
fixture.thenFileContentShouldInclude(
- '.astro/astro/env.d.ts',
+ '.astro/env.d.ts',
`declare module 'astro:env/client' {`,
'Types file does not include `astro:env` module declaration',
);
@@ -210,15 +210,15 @@ describe('astro sync', () => {
fixture.thenFileShouldExist('.astro/types.d.ts');
fixture.thenFileContentShouldInclude(
'.astro/types.d.ts',
- `/// <reference path="astro/actions.d.ts" />`,
+ `/// <reference path="actions.d.ts" />`,
);
- fixture.thenFileShouldExist('.astro/astro/actions.d.ts');
+ fixture.thenFileShouldExist('.astro/actions.d.ts');
fixture.thenFileContentShouldInclude(
- '.astro/astro/actions.d.ts',
+ '.astro/actions.d.ts',
`declare module "astro:actions" {`,
'Types file does not include `astro:actions` module declaration',
);
- fixture.thenFileShouldBeValidTypescript('.astro/astro/actions.d.ts');
+ fixture.thenFileShouldBeValidTypescript('.astro/actions.d.ts');
});
});
});