diff options
-rw-r--r-- | packages/astro/test/test-utils.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/astro/test/test-utils.js b/packages/astro/test/test-utils.js index 13d3aa00a..856c0b09f 100644 --- a/packages/astro/test/test-utils.js +++ b/packages/astro/test/test-utils.js @@ -167,7 +167,10 @@ export async function loadFixture(inlineConfig) { }, pathExists: (p) => fs.existsSync(new URL(p.replace(/^\//, ''), config.outDir)), readFile: (filePath, encoding) => - fs.promises.readFile(new URL(filePath.replace(/^\//, ''), config.outDir), encoding === undefined ? 'utf8' : encoding), + fs.promises.readFile( + new URL(filePath.replace(/^\//, ''), config.outDir), + encoding === undefined ? 'utf8' : encoding + ), readdir: (fp) => fs.promises.readdir(new URL(fp.replace(/^\//, ''), config.outDir)), glob: (p) => fastGlob(p, { |