Skip to content

Commit

Permalink
fix: format mock directory (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
agusduha authored Apr 5, 2024
1 parent 6194fb8 commit 8863fbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/smock-foundry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export async function generateMockContracts(
const escapedSubstrings = contractsDirectories.map((directory) => directory.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'));
const regexPattern = new RegExp(escapedSubstrings.join('|'), 'g');
const mockContractPath = scope.absolutePath
.replace(regexPattern, mocksDirectory)
.replace(regexPattern, path.join(mocksDirectory, path.sep))
.replace(path.basename(sourceUnit.absolutePath), `Mock${contract.name}.sol`);
const mockContractAbsolutePath = path.resolve(rootPath, mockContractPath);

Expand Down

0 comments on commit 8863fbf

Please sign in to comment.