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.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/astro/test/astro-sync.test.js b/packages/astro/test/astro-sync.test.js
index bb044574f..ce1345322 100644
--- a/packages/astro/test/astro-sync.test.js
+++ b/packages/astro/test/astro-sync.test.js
@@ -219,6 +219,16 @@ describe('astro sync', () => {
assert.fail();
}
});
+ it('Does not throw if a virtual module is imported in content/config.ts', async () => {
+ try {
+ await fixture.load('./fixtures/astro-env-content-collections/');
+ fixture.clean();
+ await fixture.whenSyncing();
+ assert.ok(true);
+ } catch {
+ assert.fail();
+ }
+ });
});
describe('astro:actions', () => {