From dfa49a304767ad36c1ba13fee5faed752895af5e Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Fri, 4 Aug 2023 15:51:11 +0000 Subject: [PATCH 1/2] test: add `~` alias to fixture --- test/fixture/nitro.config.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/fixture/nitro.config.ts b/test/fixture/nitro.config.ts index b8aea8345f..5d6120f639 100644 --- a/test/fixture/nitro.config.ts +++ b/test/fixture/nitro.config.ts @@ -1,4 +1,6 @@ +import { dirname } from "pathe" import { defineNitroConfig } from "../../src/config"; +import { fileURLToPath } from "node:url" export default defineNitroConfig({ compressPublicAssets: true, @@ -11,6 +13,9 @@ export default defineNitroConfig({ }, ], }, + alias: { + '~': dirname(fileURLToPath(import.meta.url)) + }, handlers: [ { route: "/api/test/*/foo", From b386a6f0db269851a94c2b06a9bb64fa7b758256 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Fri, 4 Aug 2023 17:13:12 +0100 Subject: [PATCH 2/2] style: lint --- test/fixture/nitro.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/fixture/nitro.config.ts b/test/fixture/nitro.config.ts index 5d6120f639..6ef164c84c 100644 --- a/test/fixture/nitro.config.ts +++ b/test/fixture/nitro.config.ts @@ -1,6 +1,6 @@ +import { fileURLToPath } from "node:url" import { dirname } from "pathe" import { defineNitroConfig } from "../../src/config"; -import { fileURLToPath } from "node:url" export default defineNitroConfig({ compressPublicAssets: true,