We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e814b60 commit 035a2caCopy full SHA for 035a2ca
packages/kit/test/prerendering/basics/test/test.js
@@ -6,10 +6,7 @@ import * as assert from 'uvu/assert';
6
const build = fileURLToPath(new URL('../build', import.meta.url));
7
8
/** @param {string} file */
9
-const read = (file) => fs.readFileSync(`${build}/${file}`, 'utf-8');
10
-
11
-/** @param {string} file */
12
-const readNoUtf = (file) => fs.readFileSync(`${build}/${file}`);
+const read = (file, encoding = 'utf-8') => fs.readFileSync(`${build}/${file}`, encoding);
13
14
test('prerenders /', () => {
15
const content = read('index.html');
0 commit comments