-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from etherspot/transactionFund
Added retry function, customized mochawesome report, linked automatio…
- Loading branch information
Showing
16 changed files
with
13,886 additions
and
7,298 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import fs from 'fs'; | ||
import addContext from 'mochawesome/addContext.js'; | ||
|
||
before('Validate the version of the Etherspot PrimeSDK', function () { | ||
var test = this; | ||
|
||
// Specify the path to the package.json file of etherspot-prime-sdk | ||
const packageJsonPath = './etherspot-prime-sdk/package.json'; | ||
|
||
// Read and parse the package.json file | ||
fs.readFile(packageJsonPath, 'utf8', function (err, data) { | ||
if (err) { | ||
console.error('Error reading package.json:', err); | ||
} else { | ||
const packageInfo = JSON.parse(data); | ||
console.log('etherspot-prime-sdk version:', packageInfo.version); | ||
addContext(test, 'etherspot-prime-sdk version: ' + packageInfo.version); | ||
} | ||
}); | ||
}); |
Oops, something went wrong.