Skip to content
Closed
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
20 changes: 18 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@typescript-eslint/semi": ["error"],
"no-shadow": "off",
"@typescript-eslint/no-shadow": "error",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }],
"no-console": 0,
"no-empty": ["error", { "allowEmptyCatch": true }],
"no-buffer-constructor": 0,
Expand All @@ -36,5 +36,21 @@
"@typescript-eslint/explicit-function-return-type": "warn",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-non-null-assertion": "off"
}
},
"overrides": [
{
"files": ["src/lightning/**/*.ts", "src/cli/**/*.ts"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
},
{
"files": ["tests/**/*.ts"],
"rules": {
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/ban-types": "off"
}
}
]
}
14 changes: 12 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,18 @@ jobs:
- name: Install Node.js dependencies
run: npm install || npm install

- name: Run Tests
run: npm run test
# Run each suite in its own process so the on-chain wallet tests get a
# fresh Electrum connection (they previously failed when run after the
# lightning/CLI suites in one long process). Interop tests are excluded
# here — they need LND/CLN/Eclair and run via `npm run test:interop`.
- name: Run on-chain wallet tests
run: yarn build && npx mocha --exit -r ts-node/register 'tests/*.test.ts'

- name: Run lightning unit tests
run: npm run test:lightning

- name: Run CLI unit tests
run: npm run test:cli

- name: Dump docker logs on failure
if: failure()
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,9 @@ lerna-debug.log
.DS_Store
Thumbs.db

# Claude Code
.claude/

# Tests
example/walletData
example/lightningData
Loading
Loading