Skip to content

Commit

Permalink
fix: handle a case when getSynpressPath is run from local synpress tests
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Mucha <[email protected]>
  • Loading branch information
drptbl committed Apr 6, 2022
1 parent 5625d70 commit 827f976
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ module.exports = {
return { networkName, networkId, isTestnet };
},
getSynpressPath: () => {
return path.dirname(require.resolve(`@synthetixio/synpress`));
if (process.env.SYNPRESS_LOCAL_TEST) {
return '.';
} else {
return path.dirname(require.resolve(`@synthetixio/synpress`));
}
},
getMetamaskReleases: async version => {
let filename;
Expand Down

0 comments on commit 827f976

Please sign in to comment.