소스 검색

network-tests: fix path to db

Mokhtar Naamani 4 년 전
부모
커밋
c22a67b165
6개의 변경된 파일8개의 추가작업 그리고 10개의 파일을 삭제
  1. 1 1
      .gitignore
  2. 1 1
      node/README.md
  3. 1 4
      package.json
  4. 1 1
      tests/network-tests/.env
  5. 1 0
      tests/network-tests/.prettierignore
  6. 3 3
      tests/network-tests/package.json

+ 1 - 1
.gitignore

@@ -28,7 +28,7 @@ yarn*
 *.wasm
 
 # Temporary files
-.tmp/
+**.tmp/
 
 # Istanbul report output
 **.nyc_output/

+ 1 - 1
node/README.md

@@ -76,7 +76,7 @@ cargo fmt --all
 
 ```bash
 ./scripts/run-dev-chain.sh
-yarn workspace joystream-testing test
+yarn workspace network-tests test
 ```
 
 To run the integration tests with a different chain, you can omit the step of running the local development chain and simply set the node URL using `NODE_URL` environment variable.

+ 1 - 4
package.json

@@ -4,12 +4,9 @@
   "version": "1.0.0",
   "license": "GPL-3.0-only",
   "scripts": {
-    "test": "yarn && yarn workspaces run test",
-    "test-migration": "yarn && yarn workspaces run test-migration",
     "postinstall": "yarn workspace @joystream/types build",
     "cargo-checks": "devops/git-hooks/pre-commit && devops/git-hooks/pre-push",
-    "cargo-build": "scripts/cargo-build.sh",
-    "lint": "yarn workspaces run lint"
+    "cargo-build": "scripts/cargo-build.sh"
   },
   "workspaces": [
     "tests/network-tests",

+ 1 - 1
tests/network-tests/.env

@@ -1,7 +1,7 @@
 # Address of the Joystream node.
 NODE_URL = ws://127.0.0.1:9944
 # Path to the database for shared keys and nonce
-DB_PATH = ../../.tmp/db.json
+DB_PATH = .tmp/db.json
 # Account which is expected to provide sufficient funds to test accounts.
 SUDO_ACCOUNT_URI = //Alice
 # Amount of members able to buy membership in membership creation test.

+ 1 - 0
tests/network-tests/.prettierignore

@@ -1 +1,2 @@
 .nyc_output/
+.tmp/

+ 3 - 3
tests/network-tests/package.json

@@ -1,14 +1,14 @@
 {
-  "name": "joystream-testing",
+  "name": "network-tests",
   "version": "0.1.0",
   "license": "GPL-3.0-only",
   "scripts": {
     "build": "tsc --noEmit",
-    "test": "yarn remove-db && tap --files src/tests/unknown.unknown src/tests/councilSetup.ts src/tests/proposals/*Test.ts src/tests/leaderSetup.ts src/tests/workingGroup/*Test.ts -T",
+    "test": "yarn db-path-setup && tap --files src/tests/unknown.unknown src/tests/councilSetup.ts src/tests/proposals/*Test.ts src/tests/leaderSetup.ts src/tests/workingGroup/*Test.ts -T",
     "lint": "eslint . --quiet --ext .ts",
     "checks": "yarn lint && tsc --noEmit --pretty && prettier ./ --check",
     "format": "prettier ./ --write ",
-    "remove-db": "rm ../../.tmp/db.json || echo ''"
+    "db-path-setup": "mkdir .tmp/ || rm .tmp/db.json || echo ''"
   },
   "dependencies": {
     "@joystream/types": "link:../../types",