Skip to content

Commit 46ef11f

Browse files
test: use postcss-loader as the package the site has a page for
The two owner-rename tests used css-loader as their example, and this branch stops building a css-loader page, so the "has a page" assertion no longer holds. postcss-loader is the same shape — a webpack-owned loader the site still builds a page for — and keeps both tests testing what they were written for. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NuWDbcF2jvq7q1r8aEY5V9
1 parent 46b6d4e commit 46ef11f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/utilities/process-readme.test.mjs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe("processReadme", () => {
2121
it("keeps the github link when the site builds no page for the package", () => {
2222
const options = {
2323
source: url,
24-
loaders: ["webpack/css-loader"],
24+
loaders: ["webpack/postcss-loader"],
2525
plugins: ["webpack/stylelint-webpack-plugin"],
2626
};
2727
const renamedPluginMDData =
@@ -40,7 +40,7 @@ describe("processReadme", () => {
4040
it("links a package the site has a page for under its current owner", () => {
4141
const options = {
4242
source: url,
43-
loaders: ["webpack/css-loader"],
43+
loaders: ["webpack/postcss-loader"],
4444
plugins: ["webpack/copy-webpack-plugin"],
4545
};
4646

@@ -52,10 +52,10 @@ describe("processReadme", () => {
5252
).toBe("- [copy-webpack-plugin](/plugins/copy-webpack-plugin/)");
5353
expect(
5454
processReadme(
55-
"- [css-loader](https://github.com/webpack/css-loader)",
55+
"- [postcss-loader](https://github.com/webpack/postcss-loader)",
5656
options,
5757
),
58-
).toBe("- [css-loader](/loaders/css-loader/)");
58+
).toBe("- [postcss-loader](/loaders/postcss-loader/)");
5959
});
6060

6161
it("links without the site", () => {

0 commit comments

Comments
 (0)