Skip to content

Commit

Permalink
fix: use path.resolve in the test utils as well
Browse files Browse the repository at this point in the history
as stated in https://stackoverflow.com/a/39111164/2814072, `path.resolve` always resolves to an absolute path where `path.join` might or not
  • Loading branch information
AdriAt360 committed Jun 8, 2022
1 parent 716106e commit eebeaf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const parsers = {
};

export function testFilePath(relativePath) {
return path.join(process.cwd(), './tests/files', relativePath);
return path.resolve(process.cwd(), './tests/files', relativePath);
}

export function getTSParsers() {
Expand Down

0 comments on commit eebeaf0

Please sign in to comment.