summaryrefslogtreecommitdiff
path: root/packages/astro/test/units/dev/collections-mixed-content-errors.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/astro/test/units/dev/collections-mixed-content-errors.test.js')
-rw-r--r--packages/astro/test/units/dev/collections-mixed-content-errors.test.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/packages/astro/test/units/dev/collections-mixed-content-errors.test.js b/packages/astro/test/units/dev/collections-mixed-content-errors.test.js
index 4ebf2b510..344615346 100644
--- a/packages/astro/test/units/dev/collections-mixed-content-errors.test.js
+++ b/packages/astro/test/units/dev/collections-mixed-content-errors.test.js
@@ -1,18 +1,12 @@
import { expect } from 'chai';
import { fileURLToPath } from 'node:url';
-import { validateConfig } from '../../../dist/core/config/config.js';
-import { createSettings } from '../../../dist/core/config/index.js';
import { sync as _sync } from '../../../dist/core/sync/index.js';
-import { createFsWithFallback, defaultLogging } from '../test-utils.js';
+import { createFsWithFallback } from '../test-utils.js';
const root = new URL('../../fixtures/content-mixed-errors/', import.meta.url);
-const logging = defaultLogging;
async function sync({ fs, config = {} }) {
- const astroConfig = await validateConfig(config, fileURLToPath(root), 'prod');
- const settings = createSettings(astroConfig, fileURLToPath(root));
-
- return _sync(settings, { logging, fs });
+ return _sync({ ...config, root: fileURLToPath(root), logLevel: 'silent' }, { fs });
}
describe('Content Collections - mixed content errors', () => {