Skip to content

Commit

Permalink
fixup! implement webpack chunks file updating using ast manipulation
Browse files Browse the repository at this point in the history
remove extra unnecessary text in test descriptions
  • Loading branch information
dario-piotrowicz committed Sep 20, 2024
1 parent 5b54b9c commit bc52302
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit bc52302

Please sign in to comment.