Skip to content
Open
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
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,13 @@ jobs:
run: |
cd listener
npm run typecheck
npm test
npm run test:coverage

- name: Upload coverage report
if: always()
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: listener/coverage/
retention-days: 14
if-no-files-found: warn
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ data/
test-data/
*.db
*.db-journal
branch_structure.json
temp_auto_push.bat
temp_interactive_push.bat
15 changes: 12 additions & 3 deletions dashboard/jest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,22 @@ module.exports = {
testTimeout: 15000,
setupFilesAfterEnv: ['<rootDir>/jest.setup.cjs'],
extensionsToTreatAsEsm: ['.ts', '.tsx'],
collectCoverageFrom: ['<rootDir>/src/**/*.{ts,tsx}'],
coveragePathIgnorePatterns: [
'<rootDir>/src/**\\/**/*.d.ts',
'<rootDir>/src/**\\/**/*.test.{ts,tsx}',
'<rootDir>/src/**\\/**/*.stories.{ts,tsx}',
'<rootDir>/src/test/**',
],
coverageDirectory: '<rootDir>/coverage',
coverageReporters: ['text', 'lcov', 'json-summary'],
moduleNameMapper: {
'^@creit\\.tech/stellar-wallets-kit/modules/utils$':
'<rootDir>/src/test/stellarWalletsKitModulesMock.ts',
'^@creit\\.tech/stellar-wallets-kit$':
'<rootDir>/src/test/stellarWalletsKitMock.ts',
'^.*/config/stellarNetwork$': '<rootDir>/src/test/stellarNetworkMock.ts',
'^.*/config/eventsApiUrl$': '<rootDir>/src/test/eventsApiUrlMock.ts',
'<rootDir>/src/test/stellaeWalletsKitMock.ts',
'^.*\\/config/stellarNetwork$': '<rootDir>/src/test/stellarNetworkMock.ts',
'^.*\\/config/eventsApiUrl$': '<rootDir>/src/test/eventsApiUrlMock.ts',
'^(\\.{1,2}/.*)\\.js$': '$1',
},
transform: {
Expand Down
3 changes: 2 additions & 1 deletion dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
"preview": "node ./node_modules/vite/bin/vite.js preview",
"dev": "node ./node_modules/vite/bin/vite.js",
"lint": "node ./node_modules/eslint/bin/eslint.js \"src/**/*.{ts,tsx}\" --max-warnings=0",
"format:check": "node ./node_modules/prettier/bin/prettier.cjs --check \"src/**/*.{ts,tsx}\" --config ../.prettierrc",
"format:check": "node ./node_modules/prettier/bin/prettier.cjs --check \"src/**/{ts,tsx}\" --config ../.prettierrc",
"test": "node ./node_modules/jest/bin/jest.js",
"test:coverage": "node ./node_modules/jest/bin/jest.js --coverage --coverageReporters=text --coverageReporters=lcov --coverageReporters=json-summary",
"test:wallet": "node ./node_modules/jest/bin/jest.js src/__tests__/wallet-integration.test.tsx",
"benchmark": "node ./node_modules/jest/bin/jest.js src/benchmark",
"storybook": "node ./node_modules/storybook/bin/index.cjs dev -p 6006",
Expand Down
Loading
Loading