Skip to content

Commit fa176e8

Browse files
committed
fmt
1 parent 85c99e0 commit fa176e8

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/rewatch_tests/helpers/sandbox.mjs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ async function assertFixtureClean() {
5656
* This is needed on Windows where git checkout may convert line endings
5757
* despite .gitattributes settings, causing the formatter to detect changes.
5858
*/
59-
async function normalizeLineEndings(dir, stats = { checked: 0, normalized: 0 }) {
59+
async function normalizeLineEndings(
60+
dir,
61+
stats = { checked: 0, normalized: 0 },
62+
) {
6063
const entries = await readdir(dir, { withFileTypes: true });
6164
for (const entry of entries) {
6265
const fullPath = join(dir, entry.name);
@@ -93,7 +96,9 @@ export async function createSandbox() {
9396
// Normalize to LF so the formatter doesn't detect spurious changes.
9497
if (process.platform === "win32") {
9598
const stats = await normalizeLineEndings(realDir);
96-
console.log(`[sandbox] Line ending normalization: checked ${stats.checked} files, normalized ${stats.normalized}`);
99+
console.log(
100+
`[sandbox] Line ending normalization: checked ${stats.checked} files, normalized ${stats.normalized}`,
101+
);
97102
}
98103

99104
// Run yarn install to create proper node_modules workspace symlinks.

0 commit comments

Comments
 (0)