summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/create-astro/test/typescript.test.js15
1 files changed, 12 insertions, 3 deletions
diff --git a/packages/create-astro/test/typescript.test.js b/packages/create-astro/test/typescript.test.js
index b5e09c2c0..0cd6a858c 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' }),
);