Skip to content

Commit 620b6b6

Browse files
chore: fill in newline for .github/DEVELOPMENT.md migration snapshot (#1151)
## PR Checklist - [x] Addresses an existing open issue: fixes #1150 - [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/create-typescript-app/blob/main/.github/CONTRIBUTING.md) were taken ## Overview Fills in that little `\n` to get rid of the file's expected diffs.
1 parent 59d530d commit 620b6b6

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

script/__snapshots__/migrate-test-e2e.js.snap

-13
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,6 @@ exports[`expected file changes > .eslintrc.cjs 1`] = `
5050
{"
5151
`;
5252
53-
exports[`expected file changes > .github/DEVELOPMENT.md 1`] = `
54-
"--- a/.github/DEVELOPMENT.md
55-
+++ b/.github/DEVELOPMENT.md
56-
@@ ... @@ Add \`--watch\` to keep the type checker running in a watch mode that updates the
57-
\`\`\`shell
58-
pnpm tsc --watch
59-
\`\`\`
60-
-
61-
## Setup Scripts
62-
63-
As described in the \`README.md\` file and \`docs/\`, this template repository comes with three scripts that can set up an existing or new repository."
64-
`;
65-
6653
exports[`expected file changes > .github/workflows/lint-knip.yml 1`] = `
6754
"--- a/.github/workflows/lint-knip.yml
6855
+++ b/.github/workflows/lint-knip.yml

script/migrate-test-e2e.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ const filesExpectedToBeChanged = [
1111
"package.json",
1212
".eslintignore",
1313
".eslintrc.cjs",
14-
".github/DEVELOPMENT.md",
1514
".github/workflows/lint-knip.yml",
1615
".github/workflows/test.yml",
1716
".gitignore",
@@ -65,7 +64,8 @@ await fs.writeFile(
6564
// We manually add them back after hydration to clear them from Git diffs.
6665
await fs.appendFile(
6766
".github/DEVELOPMENT.md",
68-
originalDevelopment.slice(originalDevelopment.indexOf("## Setup Scripts")),
67+
"\n" +
68+
originalDevelopment.slice(originalDevelopment.indexOf("## Setup Scripts")),
6969
);
7070

7171
// Ignore changes to the README.md all-contributor count and contributors table...

0 commit comments

Comments
 (0)