diff --git a/src/utils/redirect-parser/line-parser.test.js b/src/utils/redirect-parser/line-parser.test.js index 923dfd93c5b..2c00c7bfc0b 100644 --- a/src/utils/redirect-parser/line-parser.test.js +++ b/src/utils/redirect-parser/line-parser.test.js @@ -276,7 +276,7 @@ test('complicated _redirects file', t => { }) test('long _redirects file', t => { - const source = fs.readFileSync('./test-files/redirects', { + const source = fs.readFileSync(__dirname + '/test-files/redirects', { encoding: 'utf-8', })