From 13ad22b67d1749069b427a6b1fe120a71e7c3778 Mon Sep 17 00:00:00 2001 From: sapphi-red <49056869+sapphi-red@users.noreply.github.com> Date: Tue, 20 Feb 2024 20:39:05 +0900 Subject: [PATCH 1/4] test: non-normalized absolute path --- playground/resolve/__tests__/resolve.spec.ts | 4 ++++ playground/resolve/index.html | 6 ++++++ playground/resolve/non-normalized.js | 1 + playground/resolve/vite.config.js | 7 +++++++ 4 files changed, 18 insertions(+) create mode 100644 playground/resolve/non-normalized.js diff --git a/playground/resolve/__tests__/resolve.spec.ts b/playground/resolve/__tests__/resolve.spec.ts index 45b87c23e4ab10..d930ac1e49a2df 100644 --- a/playground/resolve/__tests__/resolve.spec.ts +++ b/playground/resolve/__tests__/resolve.spec.ts @@ -215,6 +215,10 @@ test('Resolve doesnt interrupt page request with trailing query and .css', async expect(await page.textContent('h1')).toBe('Resolve') }) +test('resolve non-normalized absolute path', async () => { + expect(await page.textContent('.non-normalized')).toMatch('[success]') +}) + test.runIf(!isWindows)( 'Resolve doesnt interrupt page request that clashes with local project package.json', async () => { diff --git a/playground/resolve/index.html b/playground/resolve/index.html index 89eced2e7149e9..fa6b5afbb84cd6 100644 --- a/playground/resolve/index.html +++ b/playground/resolve/index.html @@ -167,6 +167,9 @@

resolve.conditions

resolve package that contains # in path

+

resolve non normalized absolute path

+

+