From ae0b4c4306782fbba65bf4e5b5cbe249d3c20ce4 Mon Sep 17 00:00:00 2001 From: sapphi-red <49056869+sapphi-red@users.noreply.github.com> Date: Tue, 3 Oct 2023 19:30:39 +0900 Subject: [PATCH] wip: new hash algorithm --- playground/css/__tests__/css.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playground/css/__tests__/css.spec.ts b/playground/css/__tests__/css.spec.ts index f6e310d4d6058f..b424faace62b81 100644 --- a/playground/css/__tests__/css.spec.ts +++ b/playground/css/__tests__/css.spec.ts @@ -303,8 +303,8 @@ test('async chunk', async () => { if (isBuild) { // assert that the css is extracted into its own file instead of in the // main css file - expect(findAssetFile(/index-[-\w]+\.css$/)).not.toMatch('teal') - expect(findAssetFile(/async-[-\w]+\.css$/)).toMatch('.async{color:teal}') + expect(findAssetFile(/index-[-\w]{8}\.css$/)).not.toMatch('teal') + expect(findAssetFile(/async-[-\w]{8}\.css$/)).toMatch('.async{color:teal}') } else { // test hmr editFile('async.css', (code) => code.replace('color: teal', 'color: blue'))