Skip to content

Commit 46bfc5c

Browse files
mbwhitejt-nti
authored andcommitted
Remove the use of the "phantom" module
Signed-off-by: Matthew B White <whitemat@uk.ibm.com>
1 parent e5389a4 commit 46bfc5c

9 files changed

Lines changed: 96 additions & 277 deletions

File tree

common/config/rush/pnpm-lock.yaml

Lines changed: 86 additions & 214 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libraries/fabric-ledger/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"compile": "tsc",
1111
"precompile": "npm run eslint",
1212
"pretest": "npm run compile",
13-
"test": "nyc mocha --require ts-node/register --recursive 'test/unit/**/*.spec.ts' --reporter azure-mocha-reporter",
13+
"test": "nyc mocha --require ts-node/register --recursive 'test/unit/**/*.spec.ts' --reporter ./node_modules/spec-junit-splitter-mocha-reporter",
1414
"eslint": "eslint src --ext .ts"
1515
},
1616
"repository": {
@@ -70,6 +70,6 @@
7070
"ts-node": "^8.3.0",
7171
"ts-mockito": "^2.5.0",
7272
"typescript": "3.4.5",
73-
"azure-mocha-reporter": "1.0.0"
73+
"spec-junit-splitter-mocha-reporter": "1.0.1"
7474
}
7575
}

libraries/fabric-shim-crypto/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"url": "https://github.com/hyperledger/fabric-chaincode-node"
1010
},
1111
"scripts": {
12-
"test": "nyc mocha --recursive 'test/**/*.js' --reporter azure-mocha-reporter",
12+
"test": "nyc mocha --recursive 'test/**/*.js' --reporter spec-junit-splitter-mocha-reporter",
1313
"lint":"eslint ./lib/",
1414
"build": "npm run lint && npm test"
1515
},
@@ -38,7 +38,7 @@
3838
"rewire": "4.0.1",
3939
"sinon": "7.5.0",
4040
"chai-things": "^0.2.0",
41-
"azure-mocha-reporter": "1.0.0"
41+
"spec-junit-splitter-mocha-reporter": "1.0.1"
4242
},
4343
"nyc": {
4444
"exclude": [

libraries/fabric-shim/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"scripts": {
1111
"start": "./startup.sh",
1212
"compile": "tsc --project test/typescript",
13-
"test": "nyc mocha --recursive 'test/unit/**/*.js' --reporter azure-mocha-reporter",
13+
"test": "nyc mocha --recursive 'test/unit/**/*.js' --reporter spec-junit-splitter-mocha-reporter",
1414
"update:clean": "rimraf bundle.js bundle.d.ts protos && mkdirp protos",
1515
"update:copy": "cpx \"${GOPATH}/src/github.com/hyperledger/fabric-protos/**/*.proto\" protos --verbose",
1616
"update:pbjs": "pbjs -t static-module -p google-protos -p protos $(find google-protos protos -name \"*.proto\" -type f) -o bundle.js",
@@ -79,6 +79,6 @@
7979
"rewire": "4.0.1",
8080
"rimraf": "^3.0.0",
8181
"sinon": "7.5.0",
82-
"azure-mocha-reporter": "1.0.0"
82+
"spec-junit-splitter-mocha-reporter": "1.0.1"
8383
}
8484
}

rush.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -370,11 +370,6 @@
370370
"projectFolder": "tools/toolchain",
371371
"reviewCategory": "tools"
372372
},
373-
{
374-
"packageName": "azure-mocha-reporter",
375-
"projectFolder": "tools/azure-mocha-reporter",
376-
"reviewCategory": "tools"
377-
},
378373
{
379374
"packageName": "fvtests",
380375
"projectFolder": "test/fv",

test/e2e/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "docker.js",
66
"scripts": {
77
"build": "",
8-
"test:e2e": "gulp -f ./scenario.js --reporter azure-mocha-reporter 2>&1"
8+
"test:e2e": "gulp -f ./scenario.js --reporter spec-junit-splitter-mocha-reporter 2>&1"
99
},
1010
"keywords": [],
1111
"author": "",
@@ -19,6 +19,6 @@
1919
"ip": "^1.1.5",
2020
"ajv": "^6.12.2",
2121
"ajv-cli": "^3.2.1",
22-
"azure-mocha-reporter": "1.0.0"
22+
"spec-junit-splitter-mocha-reporter": "1.0.1"
2323
}
2424
}

test/fv/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"license": "Apache-2.0",
1414
"scripts": {
1515
"hello": "echo test fv project",
16-
"test:fv": "mocha *.js --reporter azure-mocha-reporter 2>&1",
16+
"test:fv": "mocha *.js --reporter spec-junit-splitter-mocha-reporter 2>&1",
1717
"build": ""
1818
},
1919
"dependencies": {
@@ -41,6 +41,6 @@
4141
"rewire": "4.0.1",
4242
"sinon": "7.5.0",
4343
"sinon-test": "^2.2.0",
44-
"azure-mocha-reporter": "1.0.0"
44+
"spec-junit-splitter-mocha-reporter": "1.0.1"
4545
}
4646
}

tools/azure-mocha-reporter/index.js

Lines changed: 0 additions & 31 deletions
This file was deleted.

tools/azure-mocha-reporter/package.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)