Skip to content

Commit

Permalink
Chenge mocha execution order of unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bakasura980 committed Sep 2, 2020
1 parent 1216fcc commit 740af63
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
3 changes: 2 additions & 1 deletion nyc.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module.exports = {
"**/*.js"
],
"exclude": [
"tests/**/*.js"
"tests/**/*.js",
"cli-commands/commands/test/specific/test-frameworks/mocha/index.js"
]
}
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"types": "index.d.ts",
"scripts": {
"build": "tsc",
"test": "tsc&& bash ./tests/testing-contracts/compile.sh && mocha -r ts-node/register tests/**/*.ts && nyc --check-coverage mocha './tests/**/*.js'",
"test-dev": "tsc && bash ./tests/testing-contracts/compile.sh && mocha './tests/**/*.js' && mocha -r ts-node/register tests/**/*.ts",
"test": "nyc --check-coverage mocha './tests/**/*.js' && tsc&& bash ./tests/testing-contracts/compile.sh && mocha -r ts-node/register tests/**/*.ts",
"test-dev": "mocha './tests/**/*.js'&& tsc && bash ./tests/testing-contracts/compile.sh && mocha -r ts-node/register tests/**/*.ts",
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov"
},
"author": "Lyubomir Kiprov (Limechain)",
Expand All @@ -23,15 +23,15 @@
"yargs": "12.0.5"
},
"devDependencies": {
"@types/mocha": "^7.0.2",
"@types/assert": "^1.5.1",
"@types/mocha": "^7.0.2",
"assert": "^2.0.0",
"mocha": "^5.2.0",
"nyc": "14.1.1",
"ts-node": "^8.10.2",
"typescript": "^3.9.5",
"mocha": "5.2.0",
"proxyquire": "^2.1.3",
"sinon": "^9.0.2",
"proxyquire": "^2.1.3"
"ts-node": "^8.10.2",
"typescript": "^3.9.5"
},
"keywords": [
"lime",
Expand Down
2 changes: 1 addition & 1 deletion tests/account-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const Networks = {
},
kylin: {
name: 'kylin',
url: 'https://kylin.eoscanada.com',
url: 'https://api.kylin.alohaeos.com',
chainId: '5fff1dae8dc8e2fc4d5b23b2c7665c97f9e9d8edf2b6485a86ba311c25639191'
},
custom: {
Expand Down
2 changes: 1 addition & 1 deletion tests/types/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('Provider', function () {
},
kylin: {
name: 'kylin',
url: 'https://kylin.eoscanada.com',
url: 'https://api.kylin.alohaeos.com',
chainId: '5fff1dae8dc8e2fc4d5b23b2c7665c97f9e9d8edf2b6485a86ba311c25639191'
},
custom: {
Expand Down

0 comments on commit 740af63

Please sign in to comment.