From bc52302a7979a7d07ad95bd251f3ef33e3e95383 Mon Sep 17 00:00:00 2001 From: Dario Piotrowicz Date: Fri, 20 Sep 2024 13:51:26 +0100 Subject: [PATCH] fixup! implement webpack chunks file updating using ast manipulation remove extra unnecessary text in test descriptions --- .../get-chunk-installation-identifiers.test.ts | 4 ++-- ...t-file-content-with-updated-webpack-require-f-code.test.ts | 4 ++-- .../get-updated-webpack-chunks-file-content.test.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/builder/src/build/patches/investigated/update-webpack-chunks-file/get-chunk-installation-identifiers.test.ts b/builder/src/build/patches/investigated/update-webpack-chunks-file/get-chunk-installation-identifiers.test.ts index 51277738..cbd58f3e 100644 --- a/builder/src/build/patches/investigated/update-webpack-chunks-file/get-chunk-installation-identifiers.test.ts +++ b/builder/src/build/patches/investigated/update-webpack-chunks-file/get-chunk-installation-identifiers.test.ts @@ -6,7 +6,7 @@ import { getChunkInstallationIdentifiers } from "./get-chunk-installation-identi import { getWebpackChunksFileTsSource } from "./get-webpack-chunks-file-ts-source"; describe("getChunkInstallationIdentifiers", () => { - test("the solution works as expected on unminified code", async () => { + test("works as expected on unminified code", async () => { const fileContent = await readFile( `${import.meta.dirname}/test-fixtures/unminified-webpacks-file.js`, "utf8" @@ -17,7 +17,7 @@ describe("getChunkInstallationIdentifiers", () => { expect(installedChunks).toEqual("installedChunks"); }); - test("the solution works as expected on minified code", async () => { + test("works as expected on minified code", async () => { const fileContent = await readFile( `${import.meta.dirname}/test-fixtures/minified-webpacks-file.js`, "utf8" diff --git a/builder/src/build/patches/investigated/update-webpack-chunks-file/get-file-content-with-updated-webpack-require-f-code.test.ts b/builder/src/build/patches/investigated/update-webpack-chunks-file/get-file-content-with-updated-webpack-require-f-code.test.ts index b90210d8..d9f72314 100644 --- a/builder/src/build/patches/investigated/update-webpack-chunks-file/get-file-content-with-updated-webpack-require-f-code.test.ts +++ b/builder/src/build/patches/investigated/update-webpack-chunks-file/get-file-content-with-updated-webpack-require-f-code.test.ts @@ -6,7 +6,7 @@ import { getFileContentWithUpdatedWebpackFRequireCode } from "./get-file-content import { getWebpackChunksFileTsSource } from "./get-webpack-chunks-file-ts-source"; describe("getFileContentWithUpdatedWebpackFRequireCode", () => { - test("the solution works as expected on unminified code", async () => { + test("works as expected on unminified code", async () => { const fileContent = await readFile( `${import.meta.dirname}/test-fixtures/unminified-webpacks-file.js`, "utf8" @@ -23,7 +23,7 @@ describe("getFileContentWithUpdatedWebpackFRequireCode", () => { ); }); - test("the solution works as expected on minified code", async () => { + test("works as expected on minified code", async () => { const fileContent = await readFile( `${import.meta.dirname}/test-fixtures/minified-webpacks-file.js`, "utf8" diff --git a/builder/src/build/patches/investigated/update-webpack-chunks-file/get-updated-webpack-chunks-file-content.test.ts b/builder/src/build/patches/investigated/update-webpack-chunks-file/get-updated-webpack-chunks-file-content.test.ts index fe74a4ac..da6f33b4 100644 --- a/builder/src/build/patches/investigated/update-webpack-chunks-file/get-updated-webpack-chunks-file-content.test.ts +++ b/builder/src/build/patches/investigated/update-webpack-chunks-file/get-updated-webpack-chunks-file-content.test.ts @@ -4,7 +4,7 @@ import { expect, test } from "vitest"; import { getUpdatedWebpackChunksFileContent } from "./get-updated-webpack-chunks-file-content"; -test("the solution works as expected on unminified code", async () => { +test("works as expected on unminified code", async () => { const fileContent = await readFile( `${import.meta.dirname}/test-fixtures/unminified-webpacks-file.js`, "utf8" @@ -13,7 +13,7 @@ test("the solution works as expected on unminified code", async () => { expect(updatedContent).toMatchFileSnapshot("./test-snapshots/unminified-webpacks-file.js"); }); -test("the solution works as expected on minified code", async () => { +test("works as expected on minified code", async () => { const fileContent = await readFile( `${import.meta.dirname}/test-fixtures/minified-webpacks-file.js`, "utf8"