Skip to content

Commit

Permalink
Merge pull request #2 from mbwhite/azure-pipelines
Browse files Browse the repository at this point in the history
Update azure-pipelines
  • Loading branch information
mbwhite authored Oct 8, 2019
2 parents ad8899c + 78ceb13 commit 17136bb
Show file tree
Hide file tree
Showing 27 changed files with 700 additions and 78 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,7 @@ docs/**/_out
common/temp/**
.rush/temp/**
**/*.build.error.log
**/*.build.log
**/*.build.log

# test results
test-results.xml
2 changes: 1 addition & 1 deletion apis/fabric-contract-api/package-deps.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"apis/fabric-contract-api/lib/contract.js": "77bc3fba6bc1a89b59273c6240cb03327fdea132",
"apis/fabric-contract-api/lib/jsontransactionserializer.js": "9148bf9088485adf4c41b6aed254c58ccbfddce7",
"apis/fabric-contract-api/lib/logger.js": "8b92ac903d0529d809cadf14bcd5a000c5e41ca5",
"apis/fabric-contract-api/package-deps.json": "056bd28d1b332a1e90d45b7f8b1190c0eb934d96",
"apis/fabric-contract-api/package-deps.json": "7f76139055984c229554e06a518482bb1bd910f7",
"apis/fabric-contract-api/package.json": "a03d196990ba7f14c4bebaa375274001b4318f5d",
"apis/fabric-contract-api/schema/contract-schema.json": "524312fd1f351bffeba8e556dcb9b3f7b36d4e70",
"apis/fabric-contract-api/schema/data.json": "c8228d6ec022cc08f1d11234efa6b2af304b80e2",
Expand Down
2 changes: 1 addition & 1 deletion apis/fabric-shim-api/package-deps.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"files": {
"apis/fabric-shim-api/index.js": "9bfebed3d9254206015c4ebc29b057a2b5bc612e",
"apis/fabric-shim-api/package-deps.json": "197b75b172560812157674127938f0f686e04e90",
"apis/fabric-shim-api/package-deps.json": "c38dfaf662cb83d1dc0d32f170014a809a83ac5c",
"apis/fabric-shim-api/package.json": "adacc2ec5fc0d6acb163101acfa929a5e34a5539",
"apis/fabric-shim-api/types/index.d.ts": "d1d2fa7c1233f7b4dbed8b31e739daabb03823b2",
"apis/fabric-shim-api/types/tsconfig.json": "ed09ed38db1792491a70a0300a3790c5ad4ae7cc"
Expand Down
140 changes: 127 additions & 13 deletions ci/azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,133 @@
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
# fabric-chaincode-node azure pipeline configuration.
#

trigger:
- master
branches:
include:
- 'master'
- 'release-1.4'
tags:
include:
- '*'

# These are custom defined variables, the pipeline one is currently used for the build scripts
# to know to produce tests results in XML format for Azure to consume, for developers
# this isn't set so command line output is given
#
variables:
component: fabric-chaincode-node
pipeline: ci

# Build on Ubutu
pool:
vmImage: 'ubuntu-latest'

steps:
- script: echo Hello, world!
displayName: 'Run a one-line script'

- script: |
echo Add other tasks to build, test, and deploy your project.
echo See https://aka.ms/yaml
displayName: 'Run a multi-line script'
#
# The stages and jobs, potential for rationalization and optimization
# Keeping it simple and explict whilst we gain experience
stages:
- stage: Build_and_Test
jobs:
- job: main
displayName: 'Build, lint, UT'
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
- script: |
node common/scripts/install-run-rush.js install
node common/scripts/install-run-rush.js update
displayName: 'Setup the node environment'
- script: |
node common/scripts/install-run-rush.js rebuild
displayName: 'Full rebuild'
- task: PublishTestResults@2
inputs:
testResultsFiles: '**/test-results.xml'
artifactName: 'Unit Test results'
testRunTitle: 'Unit Test results'
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: 'cobertura'
summaryFileLocation: '**/cobertura-coverage.xml'
artifactName: 'Unit Test Coverage'
- job: fvt
displayName: 'FV Tests'
dependsOn: main
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
- script: |
node common/scripts/install-run-rush.js install
node common/scripts/install-run-rush.js update
node common/scripts/install-run-rush.js rebuild
displayName: 'Setup the node environment'
- script: |
node common/scripts/install-run-rush.js start-fabric
node common/scripts/install-run-rush.js start-verdaccio
docker images | grep hyperledger && docker ps -a
node common/scripts/install-run-rush.js test:fv
node common/scripts/install-run-rush.js test:e2e
displayName: 'FV Tests'
- task: PublishTestResults@2
condition: or(succeeded(), failed()) # publish either way
inputs:
testResultsFiles: '**/test-results.xml'
artifactName: 'FV Test results'
testRunTitle: 'FV Test results'
# - job: pack_tgz
# dependsOn:
# - main
# - fvt
# steps:
# - script: |
# npm run tgzpack
# - task: CopyFiles@2
# inputs:
# contents: '**/fabric-*/*.tgz'
# targetFolder: $(Build.ArtifactStagingDirectory)/tgz
# - task: PublishBuildArtifacts@1
# inputs:
# pathToPublish: $(Build.ArtifactStagingDirectory)/tgz
# artifactName: MyBuildOutputs

# - job: apidocs
# steps:
# - task: NodeTool@0
# inputs:
# versionSpec: '8.x'
# - script: |
# npm install
# npm install -g gulp-cli
# displayName: 'Setup the node environment'
# - script: |
# gulp docs
# displayName: 'Produce API docs'
# - publish: $(System.DefaultWorkingDirectory)/docs/gen/
# artifact: 'jsdocs'
# - stage: Publish_tag
# condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags'))
# jobs:
# - job: update_version
# steps:
# - script: |
# env | sort
# echo "Update the version number"
# echo "Make sure release notes are present"
# echo "Make sure change history is present"
# - job: npm_publish
# steps:
# - script: |
# echo "Setup .npmrc"
# echo "Use pipeline secret to login"
# echo "publish"
# - job: jsdoc_publish
# steps:
# - script: |
# echo "checkout docs branch"
# echo "checking"
2 changes: 1 addition & 1 deletion docker/fabric-nodeenv/docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const imageBuild = async () => {
// remove fabric-nodeenv images
const imageClean = async () => {
await runcmds([
util.format('docker rmi -f `docker images -q --filter=reference="hyperledger/fabric-nodeenv:%s*"` || echo ok', version)
util.format('docker rmi -f `docker images -q --filter=reference="hyperledger/fabric-nodeenv:%s*"` 2>&1 || true', version)
]);
};

Expand Down
11 changes: 11 additions & 0 deletions docker/fabric-nodeenv/package-deps.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"files": {
"docker/fabric-nodeenv/Dockerfile": "ee8cf607a58bfd73cf2f262f70b7b80e2d17915b",
"docker/fabric-nodeenv/build.sh": "09e6c8de77fb75290129fa93ae226218efbb50e5",
"docker/fabric-nodeenv/docker.js": "7c56d7aa4917ea54c46e4c5ecb4216e9f70e8661",
"docker/fabric-nodeenv/package-deps.json": "1a4d77c7ff4a3552596e6ad20299c645fecb6ebd",
"docker/fabric-nodeenv/package.json": "46df96f1542c124fdbce3eebb26fbbb8178a4c05",
"docker/fabric-nodeenv/start.sh": "e5258ff0b9db9c76c657c1ca25c0933c0bf29c3a"
},
"arguments": "gulp -f docker.js "
}
2 changes: 1 addition & 1 deletion docs/apidocs/package-deps.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"docs/apidocs/README.md": "69d470b555f678bd0a34f21b806ef8b124bc4eec",
"docs/apidocs/bootstrap/contract-schema.json": "6359e4d8c752369082bb883074dd77bb4925e392",
"docs/apidocs/docs.js": "4fe3acc3a56c86cee76dfbf5a2ecc5c3bb2328fd",
"docs/apidocs/package-deps.json": "d4f3f6508fd4304b7c59d69f67868608e70fc626",
"docs/apidocs/package-deps.json": "c90cef5e7b1f2c71e595535750a886b9d539cd85",
"docs/apidocs/package.json": "85d80d4ee351402f9cce68ccc4eb08b0163fe853",
"docs/apidocs/redirectTemplates/404.html": "718940b175cf8571550612ce8a3af2560ff39121",
"docs/apidocs/redirectTemplates/index.html": "8d3c9681a18c76f1847db797aa95fb354bb43d9d",
Expand Down
2 changes: 1 addition & 1 deletion libraries/fabric-shim-crypto/package-deps.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"libraries/fabric-shim-crypto/index.js": "5208af1cd2ef3d3c6ec8c1a1d5c9939433e71fa6",
"libraries/fabric-shim-crypto/lib/ecdsa-key.js": "242ff7cdfd610569fd6bb6ed2f5240025659d914",
"libraries/fabric-shim-crypto/lib/enc-sign.js": "eb4fd10085f9a92f9cf4c4a238f26e94696979ca",
"libraries/fabric-shim-crypto/package-deps.json": "e759454fafbee4eb271d91bbe203ee0d6c550dcc",
"libraries/fabric-shim-crypto/package-deps.json": "0d1a5c1b21fe74b360c50c00f0942d0232ea3bf5",
"libraries/fabric-shim-crypto/package.json": "892a07777c02113e92aa992b1966817e41f5a94f",
"libraries/fabric-shim-crypto/test/ecdsa-key.js": "c1fc3e7e2ac025055675f185d0884c5c0209b591",
"libraries/fabric-shim-crypto/test/index.js": "686ca1ef898fe0f0caaf48e7950496d8c7fcb5f7",
Expand Down
6 changes: 6 additions & 0 deletions libraries/fabric-shim/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"reporterEnabled": "spec, xunit",
"xunitReporterOptions": {
"output": "test-results.xml"
}
}
93 changes: 93 additions & 0 deletions libraries/fabric-shim/package-deps.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
{
"files": {
"libraries/fabric-shim/.npmignore": "dc2045f25a0bd5dc7b80476bbb2f651323ef99a5",
"libraries/fabric-shim/README.md": "962b8ad14c22647525762bac0c5b51f8a578f6f4",
"libraries/fabric-shim/bundle.d.ts": "a3acd5e1ae8252c0f52f5955cfb4be790cad8686",
"libraries/fabric-shim/bundle.js": "33a0cd531033d11a2f8ee4851e664dc6fd28c4aa",
"libraries/fabric-shim/cli.js": "235f5676f05018a2fba5e875565ea5850921433a",
"libraries/fabric-shim/config.json": "436985380cdb92a85a48d3c377f690873a731e4c",
"libraries/fabric-shim/google-protos/google/protobuf/empty.proto": "8a59a85c65510d6177656d670d197e4b0d7008aa",
"libraries/fabric-shim/google-protos/google/protobuf/timestamp.proto": "53d26a637a4ba43db28a4e5ca270db7d4e71ed41",
"libraries/fabric-shim/index.js": "eba64698d0a41ece8360afab76da78dc8ffd24c5",
"libraries/fabric-shim/lib/chaincode.js": "1fb726e55530cc739c1faef1dd958d2db11a1b4b",
"libraries/fabric-shim/lib/cmds/metadata.js": "95cfa4e9418d0ed6011cf0b35d1061a7fa72ab5a",
"libraries/fabric-shim/lib/cmds/metadata/generateCommand.js": "605d8c0c94ea5122bb5a179b3d245233b0a510db",
"libraries/fabric-shim/lib/cmds/metadata/lib/generate.js": "f6fe975ec6e3e9004b8270cfe9de7080d2bad6f2",
"libraries/fabric-shim/lib/cmds/startCommand.js": "ddb445b60650f627630ef42f0101e382628225ef",
"libraries/fabric-shim/lib/contract-spi/bootstrap.js": "f682018eab7bccd290a4d36c7a000ae955857cda",
"libraries/fabric-shim/lib/contract-spi/chaincodefromcontract.js": "6ed61eb72ced74ae2cab7f4a17a099c55f009189",
"libraries/fabric-shim/lib/contract-spi/datamarshall.js": "7e6fb550ef467a35dba9791535ccfdfc09f973c8",
"libraries/fabric-shim/lib/contract-spi/systemcontract.js": "43fdcc31a79a5f505c1da39d8db03ab6a0de60b6",
"libraries/fabric-shim/lib/handler.js": "98ed673349c158046262ff49c77e6cefe0e58ac0",
"libraries/fabric-shim/lib/iterators.js": "6e67c61337ac705e7b8463b7fc6d5b4294ee9c9e",
"libraries/fabric-shim/lib/logger.js": "930242e6c90270cf91378a4b167a4d5b3ba28d7e",
"libraries/fabric-shim/lib/stub.js": "3d673eba5e35404bb4383f2a1370aa9888c84d48",
"libraries/fabric-shim/lib/utils/statebased.js": "0c0a96d17e43a75450f16e1673afc6b5c267f50f",
"libraries/fabric-shim/lib/utils/utils.js": "31f1f222ce6faaa804b88a805372506117e2c232",
"libraries/fabric-shim/package-deps.json": "18174f3f7c852318b11d344ba785a0b68550fd37",
"libraries/fabric-shim/package.json": "8689f58e9ede46f931575f5389882c0100076934",
"libraries/fabric-shim/protos/common/collection.proto": "77283d56d659a8dfb239e4f7eb0ed21f8071eb79",
"libraries/fabric-shim/protos/common/common.proto": "ca18f4a6647652d53d8040843c85931f26202e31",
"libraries/fabric-shim/protos/common/configtx.proto": "188848e65bd1c408a79e80e0fc58c8066c63fd41",
"libraries/fabric-shim/protos/common/configuration.proto": "a60d875423e7d29b61e231f895232782bc78b090",
"libraries/fabric-shim/protos/common/ledger.proto": "ee5b1ba7d5e77cb29520a1d74e7e6a31baaf83da",
"libraries/fabric-shim/protos/common/policies.proto": "8ac81d09f1aad9e988fdcc07cf6aef2d6574e243",
"libraries/fabric-shim/protos/discovery/protocol.proto": "d2b29bdc0d740558dfb95bc44aba1f16846b7e5b",
"libraries/fabric-shim/protos/gossip/message.proto": "f567db5c08e412a4a1400c40e953367718b9b3b7",
"libraries/fabric-shim/protos/ledger/queryresult/kv_query_result.proto": "77c6471950ed71ee20411abebc6c1a190ebf3a98",
"libraries/fabric-shim/protos/ledger/rwset/kvrwset/kv_rwset.proto": "c4f855506fcc596c7a22d2fa0bab734a5006f0f5",
"libraries/fabric-shim/protos/ledger/rwset/rwset.proto": "d9e29c59931fa130e427fdcb649869e7dddce0f0",
"libraries/fabric-shim/protos/msp/identities.proto": "46453cf3b86f5b948a3aaa46a3a6b5ddc88d2a8b",
"libraries/fabric-shim/protos/msp/msp_config.proto": "c459e3da4faa6e7a9163b0a8b31a1cd2a8506cd4",
"libraries/fabric-shim/protos/msp/msp_principal.proto": "bb9521ac4bf4d23ffe7b17494d1ffc45923e357a",
"libraries/fabric-shim/protos/orderer/ab.proto": "68c43e4de8f06238e806b66161491f3a99f64056",
"libraries/fabric-shim/protos/orderer/cluster.proto": "8ff94b3bb49f13eff6a3139ddea2d60ceac34090",
"libraries/fabric-shim/protos/orderer/configuration.proto": "c6faded814a846f159ee4121ce0d1619a032b7ad",
"libraries/fabric-shim/protos/orderer/etcdraft/configuration.proto": "3ad6037b5ba6e4fbb88af74c57d2fd45e90df0f2",
"libraries/fabric-shim/protos/orderer/etcdraft/metadata.proto": "0cf74a1c9d6f4bd8935957173bc8977161fd5535",
"libraries/fabric-shim/protos/orderer/kafka.proto": "f71a79edd250e8f7d7e0e64591520812a320351b",
"libraries/fabric-shim/protos/peer/chaincode.proto": "4e4cd6248735b7d28c60046f77f9c8e80ca597f7",
"libraries/fabric-shim/protos/peer/chaincode_event.proto": "41f75ea7d01f885d430d0fa3ccdf7be9643aaa8c",
"libraries/fabric-shim/protos/peer/chaincode_shim.proto": "48afbdb35daf5e1b1291f2e5fe177a05b9526914",
"libraries/fabric-shim/protos/peer/configuration.proto": "e9b41bc80150b87cdeb3f6d050e5e6730f33bc40",
"libraries/fabric-shim/protos/peer/events.proto": "522189cd846288653aa4fc6c14d705b3d5c3c246",
"libraries/fabric-shim/protos/peer/lifecycle/chaincode_definition.proto": "bfe01fb8409bacbd71de577af18233397c359227",
"libraries/fabric-shim/protos/peer/lifecycle/db.proto": "9adb5d511c05338f17fb46604da9e625dfb5befb",
"libraries/fabric-shim/protos/peer/lifecycle/lifecycle.proto": "4e48e6877b7df8cca6bca6be0feed1c7de8a8274",
"libraries/fabric-shim/protos/peer/peer.proto": "396b74afbea2c5cbb7c1b4a99539e7a723ee51d5",
"libraries/fabric-shim/protos/peer/policy.proto": "1f67451a381ffa76270549bae71d4a90ba0a62d0",
"libraries/fabric-shim/protos/peer/proposal.proto": "a9459467e422ad92aefa823ce9c3afc3f968721d",
"libraries/fabric-shim/protos/peer/proposal_response.proto": "4a29e9e754020fd65ee58cdefbf0861996f0e606",
"libraries/fabric-shim/protos/peer/query.proto": "5c25abda9b816c39a2b7e2dd444af062a524d082",
"libraries/fabric-shim/protos/peer/resources.proto": "be9bdd067e3d2ce66eefa6727c57f747c1f77edc",
"libraries/fabric-shim/protos/peer/signed_cc_dep_spec.proto": "05f46892d303ac79d01fc2f38171a25d7d8fab16",
"libraries/fabric-shim/protos/peer/transaction.proto": "fdffba33a8d12022e75858a3c1a50f2e1b3875d7",
"libraries/fabric-shim/protos/transientstore/transientstore.proto": "1b6d577ee2c4678604033532196150f58375a4e7",
"libraries/fabric-shim/startup.sh": "b0f86946114cd70f0462ef99b8c2d14248c034cc",
"libraries/fabric-shim/test/typescript/chaincode.ts": "590e7302714480414a412eb5e3b848cbaa84a699",
"libraries/fabric-shim/test/typescript/tsconfig.json": "02a31c3aa79d1b3ad801d5c15f1a094d257119d8",
"libraries/fabric-shim/test/unit/chaincode.js": "c6969816529b3d7d90d57ffe59a0a2ee88c541ef",
"libraries/fabric-shim/test/unit/cli.js": "d1103bd36f252a0e08a72e9e3ec206c9b29a5da5",
"libraries/fabric-shim/test/unit/client-identity.js": "588e2d0a19cefbf2f4bcbd6d6cf23fb5f548ff40",
"libraries/fabric-shim/test/unit/cmds/chaincode.js": "5ad16488e923cd46b0ba6e30d642b7ab12c4f03a",
"libraries/fabric-shim/test/unit/cmds/metadata.js": "16b0d60994c898131cfcd55908b69f0715a0a6e5",
"libraries/fabric-shim/test/unit/cmds/metadata/generateCommand.js": "686c44b1af976dd545ed30b5da02530f562bf93a",
"libraries/fabric-shim/test/unit/cmds/metadata/lib/generate.js": "db4d99f1a9683546872e55377f69e2b6cc7a2ad9",
"libraries/fabric-shim/test/unit/contract-spi/bootstrap.js": "bd1698b7f456c79808133c547117a401ed88d7bc",
"libraries/fabric-shim/test/unit/contract-spi/chaincodefromcontract.js": "04828ec82e99ce99b607eb606a983593f4f1d955",
"libraries/fabric-shim/test/unit/contract-spi/datamarshall.js": "95a4c6eacc80da0504acbf293efc03d3da4c7433",
"libraries/fabric-shim/test/unit/contract-spi/systemcontract.js": "1453b14ec1549be752f1615156ffaa7ee7986966",
"libraries/fabric-shim/test/unit/handler.js": "09bf0530790d6e84fc9e696711c548e83c4c9d0c",
"libraries/fabric-shim/test/unit/iterators.js": "4d9e89816de6e84fcd1658168cf49eb9bff29a60",
"libraries/fabric-shim/test/unit/logger.js": "b829e4015caac88a40f66408b393a7811e18c9b0",
"libraries/fabric-shim/test/unit/module.js": "89407876b28d3012d85b1f20fc5af618954372d0",
"libraries/fabric-shim/test/unit/stub.js": "d6e745a0599358e0c59214cab59106bd09c1b05a",
"libraries/fabric-shim/test/unit/utils/statebased.js": "461428761c6c910f95b66532264934eb73a477eb",
"libraries/fabric-shim/test/unit/utils/utils.js": "925bf47349bd045e60fde57f8f51720a3e0721a8",
"libraries/fabric-shim/types/index.d.ts": "6cbcf1ae02ff327a7255e4a296733f22307fe10d",
"libraries/fabric-shim/types/tsconfig.json": "ed09ed38db1792491a70a0300a3790c5ad4ae7cc",
"libraries/fabric-shim/xunit.xml": "0d92d61a409aab80178d3d8cac6947d99e5c89c4",
"libraries/fabric-shim/test-results.xml": "c3f6e845af701fe80cadad5a1efeaa15976b565e"
},
"arguments": "npm run lint & npm test 2>&1 "
}
7 changes: 4 additions & 3 deletions libraries/fabric-shim/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
"scripts": {
"start": "./startup.sh",
"compile": "tsc --project test/typescript",
"test": "nyc mocha --recursive 'test/unit/**/*.js'",
"test": "nyc mocha --recursive 'test/unit/**/*.js' --reporter mocha-multi-reporters --reporter-options configFile=config.json",
"update:clean": "rimraf bundle.js bundle.d.ts protos && mkdirp protos",
"update:copy": "cpx \"${GOPATH}/src/github.com/hyperledger/fabric-protos/**/*.proto\" protos --verbose",
"update:pbjs": "pbjs -t static-module -p google-protos -p protos $(find google-protos protos -name \"*.proto\" -type f) -o bundle.js",
"update:pbts": "pbts -o bundle.d.ts bundle.js",
"update": "npm run update:clean && npm run update:copy && npm run update:pbjs && npm run update:pbts",
"lint":"eslint ./lib",
"build": "npm run lint & npm test"
"build": "npm run lint & npm test 2>&1"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -62,7 +62,8 @@
"chai-things": "^0.2.0",
"rewire": "~4.0.1",
"eslint": "4.0.0",
"mockery": "^2.1.0"
"mockery": "^2.1.0",
"mocha-multi-reporters": "^1.1.7"
},
"nyc": {
"exclude": [
Expand Down
5 changes: 4 additions & 1 deletion libraries/fabric-shim/test/unit/chaincode.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,11 @@ describe('Chaincode', () => {

describe('Start()', () => {

beforeEach(() => {
before(() => {
Chaincode = rewire(chaincodePath);
});

beforeEach(() => {
Chaincode.__set__('yargs', {'argv': {'$0': 'fabric-chaincode-node'}});
});

Expand Down
Loading

0 comments on commit 17136bb

Please sign in to comment.