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
10 changes: 3 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,19 @@ jobs:
with:
node-version: ${{ matrix.version }}
- run: npm ci
- run: npm test --coverage
- run: npm run test:coverage
- run: npm run build
- run: npm run build:docs
- run: npm link
- run: npm ci
working-directory: e2e/js
- run: npm link '@maxmind/minfraud-api-node'
working-directory: e2e/js
- run: npx jest
- run: npx vitest run
working-directory: e2e/js
env:
NODE_OPTIONS: --experimental-vm-modules
- run: npm ci
working-directory: e2e/ts
- run: npm link '@maxmind/minfraud-api-node'
working-directory: e2e/ts
- run: npx jest
- run: npx vitest run
working-directory: e2e/ts
env:
NODE_OPTIONS: --experimental-vm-modules
7 changes: 5 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The library is server-side only and provides strongly-typed request/response mod
- TypeScript with strict type checking
- Node.js 22+ (targets active LTS versions)
- Uses Node.js built-in `fetch` for HTTP requests
- Jest for testing
- Vitest for testing
- ESLint + Prettier for code quality
- TypeDoc for API documentation
- Depends on @maxmind/geoip2-node for IP geolocation data
Expand Down Expand Up @@ -153,8 +153,11 @@ npm test
# Run tests in watch mode
npm run test:watch

# Run tests with coverage (100% thresholds enforced)
npm run test:coverage

# Run specific test file
npx jest src/webServiceClient.spec.ts
npx vitest run src/webServiceClient.spec.ts
```

### Linting and Building
Expand Down
1 change: 1 addition & 0 deletions e2e/js/index.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it } from 'vitest';
import * as minFraud from '@maxmind/minfraud-api-node';

describe('client', () => {
Expand Down
Loading