Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ jobs:
uses: streamr-dev/streamr-docker-dev-action@v1.0.1
with:
services-to-start: 'deploy-network-subgraphs-fastchain'
- name: Integration Test (with locally built images)
- name: Smoke Test (with locally built images)
env:
TEST_TIMEOUT: '600000'
DEBUG: "*,-mocha:*"
run: npm run integration-test
run: npm run smoke-test -w packages/network-subgraphs

# - name: Build & Push
# uses: docker/build-push-action@v4.1.1
Expand Down
5 changes: 3 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 0 additions & 14 deletions packages/network-contracts/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,6 @@
],
"type": "pwa-node"
},
{
"type": "node",
"request": "launch",
"name": "Mocha Test All with Options",
"program": "${workspaceFolder}/node_modules/ts-mocha/bin/ts-mocha",
"args": [
"${workspaceFolder}/test/*.test.ts",
"--timeout",
"200000"
],
"skipFiles": [
"<node_internals>/**/*.js"
]
},
{
"type": "node",
"request": "launch",
Expand Down
5 changes: 1 addition & 4 deletions packages/network-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
"build": "./build.sh",
"clean": "rm -rf artifacts dist cache coverage typechain deployments .openzeppelin/unknown-31337.json",
"test": "npm run test:fast && npm run test:slow",
"integration-test": "npm run test:dev-chain",
"integration-test-TODO": "npm run test:dev-chain && npm run test:ens-e2e",
"test:dev-chain": "ts-mocha test/integration/contractsSubgraphSmoketest.test.ts",
"integration-test-TODO": "npm run test:ens-e2e",
"test:fast": "hardhat test `find test/hardhat -name '*.test.ts'`",
"test:slow": "hardhat test `find test/hardhat-slow-tests -name '*.test.ts'`",
"test:ens-e2e": "hardhat run --network dev2 test/integration/ens-e2e.test.ts",
Expand Down Expand Up @@ -76,7 +74,6 @@
"hardhat-gas-reporter": "1.0.9",
"hardhat-ignore-warnings": "0.2.8",
"solhint": "3.4.1",
"ts-mocha": "10.0.0",
"web3-providers-http": "1.8.0"
}
}
5 changes: 4 additions & 1 deletion packages/network-subgraphs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@
"clean": "rm -rf build generated abis",
"docker:buildLocalArch": "./build.sh dev2 && docker build . -t streamr/deploy-network-subgraphs:dev-fastchain && rm subgraph.yaml",
"docker:buildMultiArchAndPush": "./build.sh dev2 && docker buildx build --platform linux/amd64,linux/arm64 . -t streamr/deploy-network-subgraphs:dev-fastchain --push && rm subgraph.yaml",
"smoke-test": "ts-mocha tests/smoke/smoke.test.ts",
"test": "cd ../../ && graph test -d --version 0.5.4",
"coverage": "cd ../../ && graph test -d -- -c"
},
"devDependencies": {
"@graphprotocol/graph-cli": "0.89.0",
"@streamr/config": "^5.8.0",
"handlebars": "4.7.8",
"matchstick-as": "0.5.0"
"matchstick-as": "0.5.0",
"ts-mocha": "10.0.0"
},
"dependencies": {
"@graphprotocol/graph-ts": "0.35.1"
Expand Down
17 changes: 17 additions & 0 deletions packages/network-subgraphs/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Node 12",
"compilerOptions": {
"lib": ["es2019", "es2020.promise", "es2020.bigint", "es2020.string"],
"module": "CommonJS",
"target": "es2019",
"preserveSymlinks": true,
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"outDir": "dist"
},
"include": ["./tests"]
}