Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Revert "run mocha from lerna root if available for correct relative p…
Browse files Browse the repository at this point in the history
…aths"

This reverts commit 89056f1.
  • Loading branch information
mikeseese committed Feb 5, 2021
1 parent 4acd507 commit e6da8f8
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 20 deletions.
3 changes: 2 additions & 1 deletion scripts/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ process.stdout.write(`${COLORS.Reset}`);
scripts: {
tsc: `ts-node ${relativePathToRoot}scripts/lerna-run.sh ttsc --project _PACKAGEDIR_/tsconfig.json`,
test: "nyc npm run mocha",
mocha: `cross-env TS_NODE_COMPILER=ttypescript TS_NODE_FILES=true ts-node ${relativePathToRoot}scripts/lerna-mocha.ts --require ts-node/register '_PACKAGEDIR_/tests/**/*.test.ts'`
mocha:
"cross-env TS_NODE_COMPILER=ttypescript TS_NODE_FILES=true mocha --exit --check-leaks --throw-deprecation --trace-warnings --require ts-node/register 'tests/**/*.test.ts'"
},
bugs: {
url: "https://github.com/trufflesuite/ganache-core/issues"
Expand Down
10 changes: 0 additions & 10 deletions scripts/lerna-mocha.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/chains/ethereum/ethereum/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"docs.preview": "ws --open --port 3010 --directory ../../../../docs",
"tsc": "ts-node ../../../../scripts/lerna-run.ts ttsc --project _PACKAGEDIR_/tsconfig.json",
"test": "nyc --reporter lcov npm run mocha",
"mocha": "cross-env TS_NODE_COMPILER=ttypescript TS_NODE_FILES=true ts-node ../../../../scripts/lerna-mocha.ts --require ts-node/register '_PACKAGEDIR_/tests/**/*.test.ts'"
"mocha": "cross-env TS_NODE_COMPILER=ttypescript TS_NODE_FILES=true mocha --exit --check-leaks --throw-deprecation --trace-warnings --require ts-node/register 'tests/**/*.test.ts'"
},
"bugs": {
"url": "https://github.com/trufflesuite/ganache-core/issues"
Expand Down
2 changes: 1 addition & 1 deletion src/chains/ethereum/options/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"scripts": {
"tsc": "ts-node ../../../../scripts/lerna-run.ts ttsc --project _PACKAGEDIR_/tsconfig.json",
"test": "nyc npm run mocha",
"mocha": "cross-env TS_NODE_COMPILER=ttypescript TS_NODE_FILES=true ts-node ../../../../scripts/lerna-mocha.ts --require ts-node/register '_PACKAGEDIR_/tests/**/*.test.ts'"
"mocha": "cross-env TS_NODE_COMPILER=ttypescript TS_NODE_FILES=true mocha --exit --check-leaks --throw-deprecation --trace-warnings --require ts-node/register 'tests/**/*.test.ts'"
},
"bugs": {
"url": "https://github.com/trufflesuite/ganache-core/issues"
Expand Down
2 changes: 1 addition & 1 deletion src/chains/ethereum/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"scripts": {
"tsc": "ts-node ../../../../scripts/lerna-run.ts ttsc --project _PACKAGEDIR_/tsconfig.json",
"test": "nyc npm run mocha",
"mocha": "cross-env TS_NODE_COMPILER=ttypescript TS_NODE_FILES=true ts-node ../../../../scripts/lerna-mocha.ts --require ts-node/register '_PACKAGEDIR_/tests/**/*.test.ts'"
"mocha": "cross-env TS_NODE_COMPILER=ttypescript TS_NODE_FILES=true mocha --exit --check-leaks --throw-deprecation --trace-warnings --require ts-node/register 'tests/**/*.test.ts'"
},
"bugs": {
"url": "https://github.com/trufflesuite/ganache-core/issues"
Expand Down
2 changes: 1 addition & 1 deletion src/chains/tezos/options/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"scripts": {
"tsc": "ts-node ../../../../scripts/lerna-run.ts ttsc --project _PACKAGEDIR_/tsconfig.json",
"test": "nyc npm run mocha",
"mocha": "cross-env TS_NODE_COMPILER=ttypescript TS_NODE_FILES=true ts-node ../../../../scripts/lerna-mocha.ts --require ts-node/register '_PACKAGEDIR_/tests/**/*.test.ts'"
"mocha": "cross-env TS_NODE_COMPILER=ttypescript TS_NODE_FILES=true mocha --exit --check-leaks --throw-deprecation --trace-warnings --require ts-node/register 'tests/**/*.test.ts'"
},
"bugs": {
"url": "https://github.com/trufflesuite/ganache-core/issues"
Expand Down
2 changes: 1 addition & 1 deletion src/packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"scripts": {
"tsc": "ts-node ../../../scripts/lerna-run.ts ttsc --project _PACKAGEDIR_/tsconfig.json",
"test": "nyc npm run mocha",
"mocha": "cross-env TS_NODE_COMPILER=ttypescript TS_NODE_FILES=true ts-node ../../../scripts/lerna-mocha.ts --require ts-node/register '_PACKAGEDIR_/tests/**/*.test.ts'",
"mocha": "cross-env TS_NODE_COMPILER=ttypescript TS_NODE_FILES=true mocha --exit --check-leaks --throw-deprecation --trace-warnings --require ts-node/register 'tests/**/*.test.ts'",
"start": "cross-env TS_NODE_COMPILER=ttypescript node --require ts-node/register --inspect src/cli.ts"
},
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion src/packages/colors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"scripts": {
"tsc": "ts-node ../../../scripts/lerna-run.ts ttsc --project _PACKAGEDIR_/tsconfig.json",
"test": "nyc npm run mocha",
"mocha": "cross-env TS_NODE_COMPILER=ttypescript TS_NODE_FILES=true ts-node ../../../scripts/lerna-mocha.ts --require ts-node/register '_PACKAGEDIR_/tests/**/*.test.ts'"
"mocha": "cross-env TS_NODE_COMPILER=ttypescript TS_NODE_FILES=true mocha --exit --check-leaks --throw-deprecation --trace-warnings --require ts-node/register 'tests/**/*.test.ts'"
},
"bugs": {
"url": "https://github.com/trufflesuite/ganache-core/issues"
Expand Down
2 changes: 1 addition & 1 deletion src/packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"scripts": {
"tsc": "ts-node ../../../scripts/lerna-run.ts ttsc --project _PACKAGEDIR_/tsconfig.json",
"test": "nyc npm run mocha",
"mocha": "cross-env TS_NODE_COMPILER=ttypescript TS_NODE_FILES=true ts-node ../../../scripts/lerna-mocha.ts --require ts-node/register '_PACKAGEDIR_/tests/**/*.test.ts'"
"mocha": "cross-env TS_NODE_COMPILER=ttypescript TS_NODE_FILES=true mocha --exit --throw-deprecation --trace-warnings --check-leaks --require ts-node/register 'tests/**/*.test.ts'"
},
"bugs": {
"url": "https://github.com/trufflesuite/ganache-core/issues"
Expand Down
2 changes: 1 addition & 1 deletion src/packages/ganache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"build": "webpack",
"tsc": "ts-node ../../../scripts/lerna-run.ts ttsc --project _PACKAGEDIR_/tsconfig.json",
"test": "nyc npm run mocha",
"mocha": "cross-env TS_NODE_COMPILER=ttypescript TS_NODE_FILES=true ts-node ../../../scripts/lerna-mocha.ts --require ts-node/register '_PACKAGEDIR_/tests/**/*.test.ts'",
"mocha": "cross-env TS_NODE_COMPILER=ttypescript TS_NODE_FILES=true mocha --exit --check-leaks --throw-deprecation --trace-warnings --require ts-node/register 'tests/**/*.test.ts'",
"start": "cross-env TS_NODE_COMPILER=ttypescript node --require ts-node/register --inspect src/cli.ts"
},
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion src/packages/promise-queue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"scripts": {
"tsc": "ts-node ../../../scripts/lerna-run.ts ttsc --project _PACKAGEDIR_/tsconfig.json",
"test": "nyc npm run mocha",
"mocha": "cross-env TS_NODE_COMPILER=ttypescript TS_NODE_FILES=true ts-node ../../../scripts/lerna-mocha.ts --require ts-node/register '_PACKAGEDIR_/tests/**.ts'"
"mocha": "cross-env TS_NODE_COMPILER=ttypescript TS_NODE_FILES=true mocha --exit --require ts-node/register --recursive --check-leaks 'tests/**.ts'"
},
"bugs": {
"url": "https://github.com/trufflesuite/ganache-core/issues"
Expand Down

0 comments on commit e6da8f8

Please sign in to comment.