diff --git a/packages/create-astro/test/typescript.test.js b/packages/create-astro/test/typescript.test.js index b5e09c2c027b..0cd6a858cc58 100644 --- a/packages/create-astro/test/typescript.test.js +++ b/packages/create-astro/test/typescript.test.js @@ -91,7 +91,10 @@ describe('typescript: setup tsconfig', async () => { assert.deepEqual(JSON.parse(fs.readFileSync(tsconfig, { encoding: 'utf-8' })), { extends: 'astro/tsconfigs/strict', }); - assert(fs.readFileSync(tsconfig, { encoding: 'utf-8' }).endsWith('\n'), 'The file does not end with a newline'); + assert( + fs.readFileSync(tsconfig, { encoding: 'utf-8' }).endsWith('\n'), + 'The file does not end with a newline', + ); }); it('exists', async () => { @@ -101,7 +104,10 @@ describe('typescript: setup tsconfig', async () => { assert.deepEqual(JSON.parse(fs.readFileSync(tsconfig, { encoding: 'utf-8' })), { extends: 'astro/tsconfigs/strict', }); - assert(fs.readFileSync(tsconfig, { encoding: 'utf-8' }).endsWith('\n'), 'The file does not end with a newline'); + assert( + fs.readFileSync(tsconfig, { encoding: 'utf-8' }).endsWith('\n'), + 'The file does not end with a newline', + ); }); }); @@ -126,7 +132,10 @@ describe('typescript: setup package', async () => { ); await setupTypeScript('strictest', { cwd: fileURLToPath(root), install: false }); - assert(fs.readFileSync(packageJson, { encoding: 'utf-8' }).endsWith('\n'), 'The file does not end with a newline'); + assert( + fs.readFileSync(packageJson, { encoding: 'utf-8' }).endsWith('\n'), + 'The file does not end with a newline', + ); const { scripts, dependencies } = JSON.parse( fs.readFileSync(packageJson, { encoding: 'utf-8' }), );