summaryrefslogtreecommitdiff
path: root/packages/astro/test/units
diff options
context:
space:
mode:
Diffstat (limited to 'packages/astro/test/units')
-rw-r--r--packages/astro/test/units/app/headers.test.js2
-rw-r--r--packages/astro/test/units/assets/remote-pattern.test.js6
-rw-r--r--packages/astro/test/units/build/static-build.test.js2
-rw-r--r--packages/astro/test/units/compile/invalid-css.test.js6
-rw-r--r--packages/astro/test/units/config/config-resolve.test.js4
-rw-r--r--packages/astro/test/units/config/config-server.test.js4
-rw-r--r--packages/astro/test/units/config/config-tsconfig.test.js2
-rw-r--r--packages/astro/test/units/config/config-validate.test.js8
-rw-r--r--packages/astro/test/units/config/format.test.js4
-rw-r--r--packages/astro/test/units/content-collections/error-map.test.js6
-rw-r--r--packages/astro/test/units/content-collections/frontmatter.test.js2
-rw-r--r--packages/astro/test/units/content-collections/get-entry-info.test.js4
-rw-r--r--packages/astro/test/units/content-collections/get-entry-type.test.js2
-rw-r--r--packages/astro/test/units/cookies/delete.test.js2
-rw-r--r--packages/astro/test/units/cookies/error.test.js2
-rw-r--r--packages/astro/test/units/cookies/get.test.js2
-rw-r--r--packages/astro/test/units/cookies/has.test.js2
-rw-r--r--packages/astro/test/units/cookies/set.test.js2
-rw-r--r--packages/astro/test/units/dev/base.test.js2
-rw-r--r--packages/astro/test/units/dev/collections-mixed-content-errors.test.js2
-rw-r--r--packages/astro/test/units/dev/collections-renderentry.test.js4
-rw-r--r--packages/astro/test/units/dev/dev.test.js4
-rw-r--r--packages/astro/test/units/dev/head-injection.test.js4
-rw-r--r--packages/astro/test/units/dev/hydration.test.js2
-rw-r--r--packages/astro/test/units/dev/restart.test.js4
-rw-r--r--packages/astro/test/units/dev/styles.test.js4
-rw-r--r--packages/astro/test/units/i18n/astro_i18n.test.js16
-rw-r--r--packages/astro/test/units/integrations/api.test.js6
-rw-r--r--packages/astro/test/units/logger/locale.test.js2
-rw-r--r--packages/astro/test/units/render/chunk.test.js4
-rw-r--r--packages/astro/test/units/render/components.test.js4
-rw-r--r--packages/astro/test/units/render/head.test.js12
-rw-r--r--packages/astro/test/units/render/jsx.test.js10
-rw-r--r--packages/astro/test/units/routing/endpoints.test.js10
-rw-r--r--packages/astro/test/units/routing/manifest.test.js4
-rw-r--r--packages/astro/test/units/routing/route-matching.test.js22
-rw-r--r--packages/astro/test/units/routing/route-sanitization.test.js12
-rw-r--r--packages/astro/test/units/routing/trailing-slash.test.js10
-rw-r--r--packages/astro/test/units/runtime/astro-global.test.js2
-rw-r--r--packages/astro/test/units/vite-plugin-astro-server/controller.test.js2
-rw-r--r--packages/astro/test/units/vite-plugin-astro-server/request.test.js6
-rw-r--r--packages/astro/test/units/vite-plugin-astro-server/response.test.js10
-rw-r--r--packages/astro/test/units/vite-plugin-astro/compile.test.js6
-rw-r--r--packages/astro/test/units/vite-plugin-astro/hmr.test.js2
-rw-r--r--packages/astro/test/units/vite-plugin-scanner/scan.test.js2
45 files changed, 115 insertions, 115 deletions
diff --git a/packages/astro/test/units/app/headers.test.js b/packages/astro/test/units/app/headers.test.js
index e8ae33f53..b13b760f4 100644
--- a/packages/astro/test/units/app/headers.test.js
+++ b/packages/astro/test/units/app/headers.test.js
@@ -1,5 +1,5 @@
-import { describe, it } from 'node:test';
import * as assert from 'node:assert/strict';
+import { describe, it } from 'node:test';
import { createOutgoingHttpHeaders } from '../../../dist/core/app/createOutgoingHttpHeaders.js';
describe('createOutgoingHttpHeaders', () => {
diff --git a/packages/astro/test/units/assets/remote-pattern.test.js b/packages/astro/test/units/assets/remote-pattern.test.js
index 316b81860..8b2072a4c 100644
--- a/packages/astro/test/units/assets/remote-pattern.test.js
+++ b/packages/astro/test/units/assets/remote-pattern.test.js
@@ -1,11 +1,11 @@
-import { describe, it } from 'node:test';
import * as assert from 'node:assert/strict';
+import { describe, it } from 'node:test';
import {
- matchProtocol,
- matchPort,
matchHostname,
matchPathname,
matchPattern,
+ matchPort,
+ matchProtocol,
} from '../../../dist/assets/utils/remotePattern.js';
describe('astro/src/assets/utils/remotePattern', () => {
diff --git a/packages/astro/test/units/build/static-build.test.js b/packages/astro/test/units/build/static-build.test.js
index acc3395df..487ebf10c 100644
--- a/packages/astro/test/units/build/static-build.test.js
+++ b/packages/astro/test/units/build/static-build.test.js
@@ -1,5 +1,5 @@
-import { describe, it } from 'node:test';
import * as assert from 'node:assert/strict';
+import { describe, it } from 'node:test';
import { makeAstroPageEntryPointFileName } from '../../../dist/core/build/static-build.js';
describe('astro/src/core/build', () => {
diff --git a/packages/astro/test/units/compile/invalid-css.test.js b/packages/astro/test/units/compile/invalid-css.test.js
index b43fb8ff6..73d52e5ec 100644
--- a/packages/astro/test/units/compile/invalid-css.test.js
+++ b/packages/astro/test/units/compile/invalid-css.test.js
@@ -1,9 +1,9 @@
-import { resolveConfig } from 'vite';
-import { describe, it } from 'node:test';
import * as assert from 'node:assert/strict';
+import { describe, it } from 'node:test';
+import { pathToFileURL } from 'node:url';
+import { resolveConfig } from 'vite';
import { compile } from '../../../dist/core/compile/index.js';
import { AggregateError } from '../../../dist/core/errors/index.js';
-import { pathToFileURL } from 'node:url';
describe('astro/src/core/compile', () => {
describe('Invalid CSS', () => {
diff --git a/packages/astro/test/units/config/config-resolve.test.js b/packages/astro/test/units/config/config-resolve.test.js
index 78b556200..b0c11be06 100644
--- a/packages/astro/test/units/config/config-resolve.test.js
+++ b/packages/astro/test/units/config/config-resolve.test.js
@@ -1,8 +1,8 @@
+import * as assert from 'node:assert/strict';
import path from 'node:path';
+import { describe, it } from 'node:test';
import { fileURLToPath } from 'node:url';
import { resolveConfig } from '../../../dist/core/config/index.js';
-import { describe, it } from 'node:test';
-import * as assert from 'node:assert/strict';
describe('resolveConfig', () => {
it('resolves relative inline root correctly', async () => {
diff --git a/packages/astro/test/units/config/config-server.test.js b/packages/astro/test/units/config/config-server.test.js
index 816cc7035..4d7063498 100644
--- a/packages/astro/test/units/config/config-server.test.js
+++ b/packages/astro/test/units/config/config-server.test.js
@@ -1,8 +1,8 @@
+import * as assert from 'node:assert/strict';
+import { describe, it } from 'node:test';
import { fileURLToPath } from 'node:url';
import { flagsToAstroInlineConfig } from '../../../dist/cli/flags.js';
import { resolveConfig } from '../../../dist/core/config/index.js';
-import { describe, it } from 'node:test';
-import * as assert from 'node:assert/strict';
const cwd = fileURLToPath(new URL('../../fixtures/config-host/', import.meta.url));
diff --git a/packages/astro/test/units/config/config-tsconfig.test.js b/packages/astro/test/units/config/config-tsconfig.test.js
index 0cd579257..c6372cbe0 100644
--- a/packages/astro/test/units/config/config-tsconfig.test.js
+++ b/packages/astro/test/units/config/config-tsconfig.test.js
@@ -1,6 +1,6 @@
-import { describe, it } from 'node:test';
import * as assert from 'node:assert/strict';
import * as path from 'node:path';
+import { describe, it } from 'node:test';
import { fileURLToPath } from 'node:url';
import { loadTSConfig, updateTSConfigForFramework } from '../../../dist/core/config/index.js';
diff --git a/packages/astro/test/units/config/config-validate.test.js b/packages/astro/test/units/config/config-validate.test.js
index 10a5c3482..7bd54755a 100644
--- a/packages/astro/test/units/config/config-validate.test.js
+++ b/packages/astro/test/units/config/config-validate.test.js
@@ -1,9 +1,9 @@
-import { z } from 'zod';
+import * as assert from 'node:assert/strict';
+import { describe, it } from 'node:test';
import stripAnsi from 'strip-ansi';
-import { formatConfigErrorMessage } from '../../../dist/core/messages.js';
+import { z } from 'zod';
import { validateConfig } from '../../../dist/core/config/config.js';
-import { describe, it } from 'node:test';
-import * as assert from 'node:assert/strict';
+import { formatConfigErrorMessage } from '../../../dist/core/messages.js';
describe('Config Validation', () => {
it('empty user config is valid', async () => {
diff --git a/packages/astro/test/units/config/format.test.js b/packages/astro/test/units/config/format.test.js
index fa65d502c..4c9e472ff 100644
--- a/packages/astro/test/units/config/format.test.js
+++ b/packages/astro/test/units/config/format.test.js
@@ -1,6 +1,6 @@
-import { fileURLToPath } from 'node:url';
-import { describe, it } from 'node:test';
import * as assert from 'node:assert/strict';
+import { describe, it } from 'node:test';
+import { fileURLToPath } from 'node:url';
import { createFs, runInContainer } from '../test-utils.js';
const root = new URL('../../fixtures/tailwindcss-ts/', import.meta.url);
diff --git a/packages/astro/test/units/content-collections/error-map.test.js b/packages/astro/test/units/content-collections/error-map.test.js
index 5e3f58733..0595fd58a 100644
--- a/packages/astro/test/units/content-collections/error-map.test.js
+++ b/packages/astro/test/units/content-collections/error-map.test.js
@@ -1,8 +1,8 @@
-import { z } from '../../../zod.mjs';
+import * as assert from 'node:assert/strict';
+import { describe, it } from 'node:test';
import { errorMap } from '../../../dist/content/index.js';
+import { z } from '../../../zod.mjs';
import { fixLineEndings } from '../../test-utils.js';
-import { describe, it } from 'node:test';
-import * as assert from 'node:assert/strict';
describe('Content Collections - error map', () => {
it('Prefixes messages with object key', () => {
diff --git a/packages/astro/test/units/content-collections/frontmatter.test.js b/packages/astro/test/units/content-collections/frontmatter.test.js
index 2e161b81f..260d561e4 100644
--- a/packages/astro/test/units/content-collections/frontmatter.test.js
+++ b/packages/astro/test/units/content-collections/frontmatter.test.js
@@ -1,7 +1,7 @@
-import { fileURLToPath } from 'node:url';
import nodeFS from 'node:fs';
import path from 'node:path';
import { describe, it } from 'node:test';
+import { fileURLToPath } from 'node:url';
import { attachContentServerListeners } from '../../../dist/content/index.js';
import { createFs, runInContainer, triggerFSEvent } from '../test-utils.js';
diff --git a/packages/astro/test/units/content-collections/get-entry-info.test.js b/packages/astro/test/units/content-collections/get-entry-info.test.js
index 780dc9467..769f3c0dc 100644
--- a/packages/astro/test/units/content-collections/get-entry-info.test.js
+++ b/packages/astro/test/units/content-collections/get-entry-info.test.js
@@ -1,6 +1,6 @@
-import { getContentEntryIdAndSlug, getEntryCollectionName } from '../../../dist/content/utils.js';
-import { describe, it } from 'node:test';
import * as assert from 'node:assert/strict';
+import { describe, it } from 'node:test';
+import { getContentEntryIdAndSlug, getEntryCollectionName } from '../../../dist/content/utils.js';
describe('Content Collections - entry info', () => {
const contentDir = new URL('src/content/', import.meta.url);
diff --git a/packages/astro/test/units/content-collections/get-entry-type.test.js b/packages/astro/test/units/content-collections/get-entry-type.test.js
index 96665d5e3..2876e5bfc 100644
--- a/packages/astro/test/units/content-collections/get-entry-type.test.js
+++ b/packages/astro/test/units/content-collections/get-entry-type.test.js
@@ -1,5 +1,5 @@
-import { describe, it } from 'node:test';
import * as assert from 'node:assert/strict';
+import { describe, it } from 'node:test';
import { fileURLToPath } from 'node:url';
import { getEntryType } from '../../../dist/content/utils.js';
diff --git a/packages/astro/test/units/cookies/delete.test.js b/packages/astro/test/units/cookies/delete.test.js
index e9e1bcd3c..4b5f188e1 100644
--- a/packages/astro/test/units/cookies/delete.test.js
+++ b/packages/astro/test/units/cookies/delete.test.js
@@ -1,5 +1,5 @@
-import { describe, it } from 'node:test';
import * as assert from 'node:assert/strict';
+import { describe, it } from 'node:test';
import { AstroCookies } from '../../../dist/core/cookies/index.js';
import { apply as applyPolyfill } from '../../../dist/core/polyfill.js';
diff --git a/packages/astro/test/units/cookies/error.test.js b/packages/astro/test/units/cookies/error.test.js
index cf5382716..027474424 100644
--- a/packages/astro/test/units/cookies/error.test.js
+++ b/packages/astro/test/units/cookies/error.test.js
@@ -1,5 +1,5 @@
-import { describe, it } from 'node:test';
import * as assert from 'node:assert/strict';
+import { describe, it } from 'node:test';
import { AstroCookies } from '../../../dist/core/cookies/index.js';
import { apply as applyPolyfill } from '../../../dist/core/polyfill.js';
diff --git a/packages/astro/test/units/cookies/get.test.js b/packages/astro/test/units/cookies/get.test.js
index d3d86260a..8cf9b6e20 100644
--- a/packages/astro/test/units/cookies/get.test.js
+++ b/packages/astro/test/units/cookies/get.test.js
@@ -1,5 +1,5 @@
-import { describe, it } from 'node:test';
import * as assert from 'node:assert/strict';
+import { describe, it } from 'node:test';
import { AstroCookies } from '../../../dist/core/cookies/index.js';
import { apply as applyPolyfill } from '../../../dist/core/polyfill.js';
diff --git a/packages/astro/test/units/cookies/has.test.js b/packages/astro/test/units/cookies/has.test.js
index 23346f917..351893d1e 100644
--- a/packages/astro/test/units/cookies/has.test.js
+++ b/packages/astro/test/units/cookies/has.test.js
@@ -1,5 +1,5 @@
-import { describe, it } from 'node:test';
import * as assert from 'node:assert/strict';
+import { describe, it } from 'node:test';
import { AstroCookies } from '../../../dist/core/cookies/index.js';
import { apply as applyPolyfill } from '../../../dist/core/polyfill.js';
diff --git a/packages/astro/test/units/cookies/set.test.js b/packages/astro/test/units/cookies/set.test.js
index f7fd334d9..120ff92bf 100644
--- a/packages/astro/test/units/cookies/set.test.js
+++ b/packages/astro/test/units/cookies/set.test.js
@@ -1,5 +1,5 @@
-import { describe, it } from 'node:test';
import * as assert from 'node:assert/strict';
+import { describe, it } from 'node:test';
import { AstroCookies } from '../../../dist/core/cookies/index.js';
import { apply as applyPolyfill } from '../../../dist/core/polyfill.js';
diff --git a/packages/astro/test/units/dev/base.test.js b/packages/astro/test/units/dev/base.test.js
index a3006163b..6a8f33fb7 100644
--- a/packages/astro/test/units/dev/base.test.js
+++ b/packages/astro/test/units/dev/base.test.js
@@ -1,5 +1,5 @@
-import { describe, it } from 'node:test';
import * as assert from 'node:assert/strict';
+import { describe, it } from 'node:test';
import { fileURLToPath } from 'node:url';
import { createFs, createRequestAndResponse, runInContainer } from '../test-utils.js';
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 26ea1334d..0086b51e8 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,5 +1,5 @@
-import { describe, it } from 'node:test';
import * as assert from 'node:assert/strict';
+import { describe, it } from 'node:test';
import { fileURLToPath } from 'node:url';
import _sync from '../../../dist/core/sync/index.js';
import { createFsWithFallback } from '../test-utils.js';
diff --git a/packages/astro/test/units/dev/collections-renderentry.test.js b/packages/astro/test/units/dev/collections-renderentry.test.js
index cf3674027..4c3849577 100644
--- a/packages/astro/test/units/dev/collections-renderentry.test.js
+++ b/packages/astro/test/units/dev/collections-renderentry.test.js
@@ -1,8 +1,8 @@
-import { describe, it } from 'node:test';
import * as assert from 'node:assert/strict';
-import * as cheerio from 'cheerio';
import os from 'node:os';
+import { describe, it } from 'node:test';
import { fileURLToPath } from 'node:url';
+import * as cheerio from 'cheerio';
import { attachContentServerListeners } from '../../../dist/content/server-listeners.js';
import { createFsWithFallback, createRequestAndResponse, runInContainer } from '../test-utils.js';
diff --git a/packages/astro/test/units/dev/dev.test.js b/packages/astro/test/units/dev/dev.test.js
index b89e18feb..85f584e9c 100644
--- a/packages/astro/test/units/dev/dev.test.js
+++ b/packages/astro/test/units/dev/dev.test.js
@@ -1,7 +1,7 @@
-import { describe, it } from 'node:test';
import * as assert from 'node:assert/strict';
-import * as cheerio from 'cheerio';
+import { describe, it } from 'node:test';
import { fileURLToPath } from 'node:url';
+import * as cheerio from 'cheerio';
import {
createFs,
createRequestAndResponse,
diff --git a/packages/astro/test/units/dev/head-injection.test.js b/packages/astro/test/units/dev/head-injection.test.js
index 837fc45b9..0bb7a30f8 100644
--- a/packages/astro/test/units/dev/head-injection.test.js
+++ b/packages/astro/test/units/dev/head-injection.test.js
@@ -1,7 +1,7 @@
-import { describe, it } from 'node:test';
import * as assert from 'node:assert/strict';
-import * as cheerio from 'cheerio';
+import { describe, it } from 'node:test';
import { fileURLToPath } from 'node:url';
+import * as cheerio from 'cheerio';
import { createFs, createRequestAndResponse, runInContainer } from '../test-utils.js';
const root = new URL('../../fixtures/alias/', import.meta.url);
diff --git a/packages/astro/test/units/dev/hydration.test.js b/packages/astro/test/units/dev/hydration.test.js
index 720e4b2f3..df48b757d 100644
--- a/packages/astro/test/units/dev/hydration.test.js
+++ b/packages/astro/test/units/dev/hydration.test.js
@@ -1,5 +1,5 @@
-import { describe, it } from 'node:test';
import * as assert from 'node:assert/strict';
+import { describe, it } from 'node:test';
import { fileURLToPath } from 'node:url';
import { createFs, createRequestAndResponse, runInContainer } from '../test-utils.js';
diff --git a/packages/astro/test/units/dev/restart.test.js b/packages/astro/test/units/dev/restart.test.js
index 0fad93de4..a2a858965 100644
--- a/packages/astro/test/units/dev/restart.test.js
+++ b/packages/astro/test/units/dev/restart.test.js
@@ -1,7 +1,7 @@
-import { describe, it } from 'node:test';
import * as assert from 'node:assert/strict';
-import * as cheerio from 'cheerio';
+import { describe, it } from 'node:test';
import { fileURLToPath } from 'node:url';
+import * as cheerio from 'cheerio';
import {
createContainerWithAutomaticRestart,
diff --git a/packages/astro/test/units/dev/styles.test.js b/packages/astro/test/units/dev/styles.test.js
index a1ab6b942..3b674108d 100644
--- a/packages/astro/test/units/dev/styles.test.js
+++ b/packages/astro/test/units/dev/styles.test.js
@@ -1,7 +1,7 @@
-import { describe, it, before } from 'node:test';
import * as assert from 'node:assert/strict';
-import { getStylesForURL } from '../../../dist/vite-plugin-astro-server/css.js';
+import { before, describe, it } from 'node:test';
import { viteID } from '../../../dist/core/util.js';
+import { getStylesForURL } from '../../../dist/vite-plugin-astro-server/css.js';
const root = new URL('../../fixtures/alias/', import.meta.url);
diff --git a/packages/astro/test/units/i18n/astro_i18n.test.js b/packages/astro/test/units/i18n/astro_i18n.test.js
index 0e8fdb4b5..6622308cc 100644
--- a/packages/astro/test/units/i18n/astro_i18n.test.js
+++ b/packages/astro/test/units/i18n/astro_i18n.test.js
@@ -1,16 +1,16 @@
+import * as assert from 'node:assert/strict';
+import { describe, it } from 'node:test';
+import { MissingLocale } from '#astro/core/errors/errors-data';
+import { AstroError } from '#astro/core/errors/index';
+import { toRoutingStrategy } from '#astro/i18n/utils';
+import { validateConfig } from '../../../dist/core/config/config.js';
import {
- getLocaleRelativeUrl,
- getLocaleRelativeUrlList,
getLocaleAbsoluteUrl,
getLocaleAbsoluteUrlList,
+ getLocaleRelativeUrl,
+ getLocaleRelativeUrlList,
} from '../../../dist/i18n/index.js';
import { parseLocale } from '../../../dist/i18n/utils.js';
-import { describe, it } from 'node:test';
-import * as assert from 'node:assert/strict';
-import { validateConfig } from '../../../dist/core/config/config.js';
-import { AstroError } from '#astro/core/errors/index';
-import { MissingLocale } from '#astro/core/errors/errors-data';
-import { toRoutingStrategy } from '#astro/i18n/utils';
describe('getLocaleRelativeUrl', () => {
it('should correctly return the URL with the base', () => {
diff --git a/packages/astro/test/units/integrations/api.test.js b/packages/astro/test/units/integrations/api.test.js
index d4b0491c3..e05c4f944 100644
--- a/packages/astro/test/units/integrations/api.test.js
+++ b/packages/astro/test/units/integrations/api.test.js
@@ -1,8 +1,8 @@
-import { runHookBuildSetup, runHookConfigSetup } from '../../../dist/integrations/index.js';
+import * as assert from 'node:assert/strict';
+import { describe, it } from 'node:test';
import { validateSupportedFeatures } from '../../../dist/integrations/astroFeaturesValidation.js';
+import { runHookBuildSetup, runHookConfigSetup } from '../../../dist/integrations/index.js';
import { defaultLogger } from '../test-utils.js';
-import { describe, it } from 'node:test';
-import * as assert from 'node:assert/strict';
describe('Integration API', () => {
it('runHookBuildSetup should work', async () => {
diff --git a/packages/astro/test/units/logger/locale.test.js b/packages/astro/test/units/logger/locale.test.js
index ddeadfc81..c427d022a 100644
--- a/packages/astro/test/units/logger/locale.test.js
+++ b/packages/astro/test/units/logger/locale.test.js
@@ -1,5 +1,5 @@
-import { describe, it, after } from 'node:test';
import * as assert from 'node:assert/strict';
+import { after, describe, it } from 'node:test';
const LOCALES = ['en_US', 'sv_SE', 'es_419.UTF-8', 'es_ES@euro', 'C'];
diff --git a/packages/astro/test/units/render/chunk.test.js b/packages/astro/test/units/render/chunk.test.js
index 035e98484..f34e3d090 100644
--- a/packages/astro/test/units/render/chunk.test.js
+++ b/packages/astro/test/units/render/chunk.test.js
@@ -1,7 +1,7 @@
-import { describe, it } from 'node:test';
import * as assert from 'node:assert/strict';
-import * as cheerio from 'cheerio';
+import { describe, it } from 'node:test';
import { fileURLToPath } from 'node:url';
+import * as cheerio from 'cheerio';
import { createFs, createRequestAndResponse, runInContainer } from '../test-utils.js';
const root = new URL('../../fixtures/alias/', import.meta.url);
diff --git a/packages/astro/test/units/render/components.test.js b/packages/astro/test/units/render/components.test.js
index 7fa36e864..c490cb19e 100644
--- a/packages/astro/test/units/render/components.test.js
+++ b/packages/astro/test/units/render/components.test.js
@@ -1,7 +1,7 @@
-import { describe, it } from 'node:test';
import * as assert from 'node:assert/strict';
-import * as cheerio from 'cheerio';
+import { describe, it } from 'node:test';
import { fileURLToPath } from 'node:url';
+import * as cheerio from 'cheerio';
import { createFs, createRequestAndResponse, runInContainer } from '../test-utils.js';
const root = new URL('../../fixtures/alias/', import.meta.url);
diff --git a/packages/astro/test/units/render/head.test.js b/packages/astro/test/units/render/head.test.js
index ce494336a..06fe0705a 100644
--- a/packages/astro/test/units/render/head.test.js
+++ b/packages/astro/test/units/render/head.test.js
@@ -1,17 +1,17 @@
-import { describe, it, before } from 'node:test';
import * as assert from 'node:assert/strict';
+import { before, describe, it } from 'node:test';
+import * as cheerio from 'cheerio';
+import { RenderContext } from '../../../dist/core/render-context.js';
import {
+ Fragment,
createComponent,
+ maybeRenderHead,
render,
renderComponent,
- renderSlot,
- maybeRenderHead,
renderHead,
- Fragment,
+ renderSlot,
} from '../../../dist/runtime/server/index.js';
-import { RenderContext } from '../../../dist/core/render-context.js';
import { createBasicPipeline } from '../test-utils.js';
-import * as cheerio from 'cheerio';
const createAstroModule = (AstroComponent) => ({ default: AstroComponent });
diff --git a/packages/astro/test/units/render/jsx.test.js b/packages/astro/test/units/render/jsx.test.js
index e2df9a60d..0f91ccfc9 100644
--- a/packages/astro/test/units/render/jsx.test.js
+++ b/packages/astro/test/units/render/jsx.test.js
@@ -1,15 +1,15 @@
-import { describe, it, before } from 'node:test';
import * as assert from 'node:assert/strict';
+import { before, describe, it } from 'node:test';
+import { RenderContext } from '../../../dist/core/render-context.js';
+import { loadRenderer } from '../../../dist/core/render/index.js';
+import { jsx } from '../../../dist/jsx-runtime/index.js';
+import { createAstroJSXComponent, renderer as jsxRenderer } from '../../../dist/jsx/index.js';
import {
createComponent,
render,
renderComponent,
renderSlot,
} from '../../../dist/runtime/server/index.js';
-import { jsx } from '../../../dist/jsx-runtime/index.js';
-import { loadRenderer } from '../../../dist/core/render/index.js';
-import { RenderContext } from '../../../dist/core/render-context.js';
-import { createAstroJSXComponent, renderer as jsxRenderer } from '../../../dist/jsx/index.js';
import { createBasicPipeline } from '../test-utils.js';
const createAstroModule = (AstroComponent) => ({ default: AstroComponent });
diff --git a/packages/astro/test/units/routing/endpoints.test.js b/packages/astro/test/units/routing/endpoints.test.js
index c03a70802..cff44f1b4 100644
--- a/packages/astro/test/units/routing/endpoints.test.js
+++ b/packages/astro/test/units/routing/endpoints.test.js
@@ -1,14 +1,14 @@
+import * as assert from 'node:assert/strict';
+import { after, before, describe, it } from 'node:test';
+import { fileURLToPath } from 'node:url';
+import { createContainer } from '../../../dist/core/dev/container.js';
+import testAdapter from '../../test-adapter.js';
import {
createBasicSettings,
createFs,
createRequestAndResponse,
defaultLogger,
} from '../test-utils.js';
-import { fileURLToPath } from 'node:url';
-import { describe, it, before, after } from 'node:test';
-import * as assert from 'node:assert/strict';
-import { createContainer } from '../../../dist/core/dev/container.js';
-import testAdapter from '../../test-adapter.js';
const root = new URL('../../fixtures/api-routes/', import.meta.url);
const fileSystem = {
diff --git a/packages/astro/test/units/routing/manifest.test.js b/packages/astro/test/units/routing/manifest.test.js
index 5e90c6c79..2e7ff9e7c 100644
--- a/packages/astro/test/units/routing/manifest.test.js
+++ b/packages/astro/test/units/routing/manifest.test.js
@@ -1,9 +1,9 @@
-import { describe, it } from 'node:test';
import * as assert from 'node:assert/strict';
+import { describe, it } from 'node:test';
import { fileURLToPath } from 'node:url';
+import { Logger } from '../../../dist/core/logger/core.js';
import { createRouteManifest } from '../../../dist/core/routing/manifest/create.js';
import { createBasicSettings, createFs } from '../test-utils.js';
-import { Logger } from '../../../dist/core/logger/core.js';
const root = new URL('../../fixtures/alias/', import.meta.url);
diff --git a/packages/astro/test/units/routing/route-matching.test.js b/packages/astro/test/units/routing/route-matching.test.js
index 01b1d000a..b2f27d8c9 100644
--- a/packages/astro/test/units/routing/route-matching.test.js
+++ b/packages/astro/test/units/routing/route-matching.test.js
@@ -1,20 +1,20 @@
+import * as assert from 'node:assert/strict';
+import { after, before, describe, it } from 'node:test';
+import { fileURLToPath } from 'node:url';
+import * as cheerio from 'cheerio';
+import { createContainer } from '../../../dist/core/dev/container.js';
+import { createViteLoader } from '../../../dist/core/module-loader/vite.js';
+import { createRouteManifest, matchAllRoutes } from '../../../dist/core/routing/index.js';
+import { getSortedPreloadedMatches } from '../../../dist/prerender/routing.js';
+import { DevPipeline } from '../../../dist/vite-plugin-astro-server/pipeline.js';
+import { createDevelopmentManifest } from '../../../dist/vite-plugin-astro-server/plugin.js';
+import testAdapter from '../../test-adapter.js';
import {
createBasicSettings,
createFs,
createRequestAndResponse,
defaultLogger,
} from '../test-utils.js';
-import { createRouteManifest, matchAllRoutes } from '../../../dist/core/routing/index.js';
-import { fileURLToPath } from 'node:url';
-import { createViteLoader } from '../../../dist/core/module-loader/vite.js';
-import { describe, it, before, after } from 'node:test';
-import * as assert from 'node:assert/strict';
-import { createContainer } from '../../../dist/core/dev/container.js';
-import * as cheerio from 'cheerio';
-import testAdapter from '../../test-adapter.js';
-import { getSortedPreloadedMatches } from '../../../dist/prerender/routing.js';
-import { createDevelopmentManifest } from '../../../dist/vite-plugin-astro-server/plugin.js';
-import { DevPipeline } from '../../../dist/vite-plugin-astro-server/pipeline.js';
const root = new URL('../../fixtures/alias/', import.meta.url);
const fileSystem = {
diff --git a/packages/astro/test/units/routing/route-sanitization.test.js b/packages/astro/test/units/routing/route-sanitization.test.js
index c2367055a..802418868 100644
--- a/packages/astro/test/units/routing/route-sanitization.test.js
+++ b/packages/astro/test/units/routing/route-sanitization.test.js
@@ -1,15 +1,15 @@
+import * as assert from 'node:assert/strict';
+import { after, before, describe, it } from 'node:test';
+import { fileURLToPath } from 'node:url';
+import * as cheerio from 'cheerio';
+import { createContainer } from '../../../dist/core/dev/container.js';
+import testAdapter from '../../test-adapter.js';
import {
createBasicSettings,
createFs,
createRequestAndResponse,
defaultLogger,
} from '../test-utils.js';
-import { fileURLToPath } from 'node:url';
-import { describe, it, before, after } from 'node:test';
-import * as assert from 'node:assert/strict';
-import { createContainer } from '../../../dist/core/dev/container.js';
-import * as cheerio from 'cheerio';
-import testAdapter from '../../test-adapter.js';
const root = new URL('../../fixtures/alias/', import.meta.url);
const fileSystem = {
diff --git a/packages/astro/test/units/routing/trailing-slash.test.js b/packages/astro/test/units/routing/trailing-slash.test.js
index 292b32ff5..8bbc33f19 100644
--- a/packages/astro/test/units/routing/trailing-slash.test.js
+++ b/packages/astro/test/units/routing/trailing-slash.test.js
@@ -1,14 +1,14 @@
+import * as assert from 'node:assert/strict';
+import { after, before, describe, it } from 'node:test';
+import { fileURLToPath } from 'node:url';
+import { createContainer } from '../../../dist/core/dev/container.js';
+import testAdapter from '../../test-adapter.js';
import {
createBasicSettings,
createFs,
createRequestAndResponse,
defaultLogger,
} from '../test-utils.js';
-import { fileURLToPath } from 'node:url';
-import { describe, it, before, after } from 'node:test';
-import * as assert from 'node:assert/strict';
-import { createContainer } from '../../../dist/core/dev/container.js';
-import testAdapter from '../../test-adapter.js';
const root = new URL('../../fixtures/api-routes/', import.meta.url);
const fileSystem = {
diff --git a/packages/astro/test/units/runtime/astro-global.test.js b/packages/astro/test/units/runtime/astro-global.test.js
index a7959a4ec..8c745c01d 100644
--- a/packages/astro/test/units/runtime/astro-global.test.js
+++ b/packages/astro/test/units/runtime/astro-global.test.js
@@ -1,5 +1,5 @@
-import { describe, it } from 'node:test';
import * as assert from 'node:assert/strict';
+import { describe, it } from 'node:test';
import { createAstro } from '../../../dist/runtime/server/index.js';
describe('astro global', () => {
diff --git a/packages/astro/test/units/vite-plugin-astro-server/controller.test.js b/packages/astro/test/units/vite-plugin-astro-server/controller.test.js
index 345c2009d..37fa4dfc4 100644
--- a/packages/astro/test/units/vite-plugin-astro-server/controller.test.js
+++ b/packages/astro/test/units/vite-plugin-astro-server/controller.test.js
@@ -1,5 +1,5 @@
-import { describe, it } from 'node:test';
import * as assert from 'node:assert/strict';
+import { describe, it } from 'node:test';
import { createLoader } from '../../../dist/core/module-loader/index.js';
import {
createController,
diff --git a/packages/astro/test/units/vite-plugin-astro-server/request.test.js b/packages/astro/test/units/vite-plugin-astro-server/request.test.js
index 63d2d2a5f..dfbb5a1b8 100644
--- a/packages/astro/test/units/vite-plugin-astro-server/request.test.js
+++ b/packages/astro/test/units/vite-plugin-astro-server/request.test.js
@@ -1,9 +1,11 @@
-import { describe, it } from 'node:test';
import * as assert from 'node:assert/strict';
+import { describe, it } from 'node:test';
import { createLoader } from '../../../dist/core/module-loader/index.js';
import { createRouteManifest } from '../../../dist/core/routing/index.js';
import { createComponent, render } from '../../../dist/runtime/server/index.js';
import { createController, handleRequest } from '../../../dist/vite-plugin-astro-server/index.js';
+import { DevPipeline } from '../../../dist/vite-plugin-astro-server/pipeline.js';
+import { createDevelopmentManifest } from '../../../dist/vite-plugin-astro-server/plugin.js';
import {
createAstroModule,
createBasicSettings,
@@ -11,8 +13,6 @@ import {
createRequestAndResponse,
defaultLogger,
} from '../test-utils.js';
-import { createDevelopmentManifest } from '../../../dist/vite-plugin-astro-server/plugin.js';
-import { DevPipeline } from '../../../dist/vite-plugin-astro-server/pipeline.js';
async function createDevPipeline(overrides = {}) {
const settings = overrides.settings ?? (await createBasicSettings({ root: '/' }));
diff --git a/packages/astro/test/units/vite-plugin-astro-server/response.test.js b/packages/astro/test/units/vite-plugin-astro-server/response.test.js
index 42cd90e88..fadaed99f 100644
--- a/packages/astro/test/units/vite-plugin-astro-server/response.test.js
+++ b/packages/astro/test/units/vite-plugin-astro-server/response.test.js
@@ -1,14 +1,14 @@
+import * as assert from 'node:assert/strict';
+import { after, before, describe, it } from 'node:test';
+import { fileURLToPath } from 'node:url';
+import { createContainer } from '../../../dist/core/dev/container.js';
+import testAdapter from '../../test-adapter.js';
import {
createBasicSettings,
createFs,
createRequestAndResponse,
defaultLogger,
} from '../test-utils.js';
-import { fileURLToPath } from 'node:url';
-import { describe, it, before, after } from 'node:test';
-import * as assert from 'node:assert/strict';
-import { createContainer } from '../../../dist/core/dev/container.js';
-import testAdapter from '../../test-adapter.js';
const root = new URL('../../fixtures/api-routes/', import.meta.url);
const fileSystem = {
diff --git a/packages/astro/test/units/vite-plugin-astro/compile.test.js b/packages/astro/test/units/vite-plugin-astro/compile.test.js
index 08b6c2810..dd779024b 100644
--- a/packages/astro/test/units/vite-plugin-astro/compile.test.js
+++ b/packages/astro/test/units/vite-plugin-astro/compile.test.js
@@ -1,9 +1,9 @@
-import { describe, it } from 'node:test';
import * as assert from 'node:assert/strict';
+import { describe, it } from 'node:test';
+import { pathToFileURL } from 'node:url';
+import { init, parse } from 'es-module-lexer';
import { resolveConfig } from 'vite';
import { compileAstro } from '../../../dist/vite-plugin-astro/compile.js';
-import { init, parse } from 'es-module-lexer';
-import { pathToFileURL } from 'node:url';
const viteConfig = await resolveConfig({ configFile: false }, 'serve');
diff --git a/packages/astro/test/units/vite-plugin-astro/hmr.test.js b/packages/astro/test/units/vite-plugin-astro/hmr.test.js
index f7f968192..22e17b6bd 100644
--- a/packages/astro/test/units/vite-plugin-astro/hmr.test.js
+++ b/packages/astro/test/units/vite-plugin-astro/hmr.test.js
@@ -1,5 +1,5 @@
-import { describe, it } from 'node:test';
import * as assert from 'node:assert/strict';
+import { describe, it } from 'node:test';
import { isStyleOnlyChanged } from '../../../dist/vite-plugin-astro/hmr.js';
describe('isStyleOnlyChanged', () => {
diff --git a/packages/astro/test/units/vite-plugin-scanner/scan.test.js b/packages/astro/test/units/vite-plugin-scanner/scan.test.js
index d1e389de0..9b01c9f14 100644
--- a/packages/astro/test/units/vite-plugin-scanner/scan.test.js
+++ b/packages/astro/test/units/vite-plugin-scanner/scan.test.js
@@ -1,5 +1,5 @@
-import { describe, it, before, after } from 'node:test';
import * as assert from 'node:assert/strict';
+import { after, before, describe, it } from 'node:test';
import { scan } from '../../../dist/vite-plugin-scanner/scan.js';
describe('astro scan', () => {