Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: audit package #787

Merged
merged 9 commits into from
Jan 17, 2023
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
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ information for each package below:

* [Accounts](https://github.com/Vonage/vonage-node-sdk/blob/3.x/packages/accounts/README.md)
* [Applications](https://github.com/Vonage/vonage-node-sdk/blob/3.x/packages/applications/README.md)
* [Audit](https://github.com/Vonage/vonage-node-sdk/blob/3.x/packages/audit/README.md)
* [Auth](https://github.com/Vonage/vonage-node-sdk/blob/3.x/packages/auth/README.md)
* [JWT](https://github.com/Vonage/vonage-node-sdk/blob/3.x/packages/jwt/README.md)
* [Messages](https://github.com/Vonage/vonage-node-sdk/blob/3.x/packages/messages/README.md)
Expand All @@ -43,7 +44,7 @@ The following is a list of Vonage APIs and whether the Node Server SDK provides
| Account API | General Availability |✅|
| Alerts API | General Availability |✅|
| Application API | General Availability |✅|
| Audit API | Beta ||
| Audit API | Beta ||
| Conversation API | Beta |❌|
| Dispatch API | Beta |❌|
| External Accounts API | Beta |❌|
Expand Down
144 changes: 79 additions & 65 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,72 +1,86 @@
import type { Config } from '@jest/types';

const config: Config.InitialOptions = {
coverageDirectory: '<rootDir>/coverage/',
projects: [
{
displayName: "ACCOUNTS",
testMatch: ['<rootDir>/packages/accounts/__tests__/**/*.test.ts'],
},
{
displayName: "APPLICATIONS",
testMatch: ['<rootDir>/packages/applications/__tests__/**/*.test.ts'],
},
{
displayName: "AUTH",
testMatch: ['<rootDir>/packages/auth/__tests__/**/*.test.ts'],
},
{
displayName: "JWT",
testMatch: ['<rootDir>/packages/jwt/__tests__/**/*.test.ts'],
},
{
displayName: "MESSAGES",
testMatch: ['<rootDir>/packages/messages/__tests__/**/*.test.ts'],
},
{
displayName: "NUMBER INSIGHTS",
testMatch: ['<rootDir>/packages/number-insights/__tests__/**/*.test.ts'],
},
{
displayName: "NUMBERS",
testMatch: ['<rootDir>/packages/numbers/__tests__/**/*.test.ts'],
},
{
displayName: "PRICING",
testMatch: ['<rootDir>/packages/pricing/__tests__/**/*.test.ts'],
},
{
displayName: "SERVER CLIENT",
testMatch: ['<rootDir>/packages/server-client/__tests__/**/*.test.ts'],
},
{
displayName: "SERVER SDK",
testMatch: ['<rootDir>/packages/server-sdk/__tests__/**/*.test.ts'],
},
{
displayName: "SMS",
testMatch: ['<rootDir>/packages/sms/__tests__/**/*.test.ts'],
},
{
displayName: "VERIFY",
testMatch: ['<rootDir>/packages/verify/__tests__/**/*.test.ts'],
},
{
displayName: "VETCH",
testMatch: ['<rootDir>/packages/vetch/__tests__/**/*.test.ts'],
},
{
displayName: "VIDEO",
testMatch: ['<rootDir>/packages/video/__tests__/**/*.test.ts'],
},
{
displayName: "VOICE",
testMatch: ['<rootDir>/packages/voice/__tests__/**/*.test.ts'],
},
],
moduleNameMapper: {
'@vonage/(.+)': '<rootDir>/packages/$1/lib',
coverageDirectory: '<rootDir>/coverage/',
projects: [
{
displayName: 'ACCOUNTS',
testMatch: ['<rootDir>/packages/accounts/__tests__/**/*.test.ts'],
},
{
displayName: 'APPLICATIONS',
testMatch: [
'<rootDir>/packages/applications/__tests__/**/*.test.ts',
],
},
{
displayName: 'AUDIT',
testMatch: ['<rootDir>/packages/audit/__tests__/**/*.test.ts'],
},
{
displayName: 'AUDIT',
testMatch: ['<rootDir>/packages/audit/tests__/**/*.test.ts'],
},
{
displayName: 'AUTH',
testMatch: ['<rootDir>/packages/auth/__tests__/**/*.test.ts'],
},
{
displayName: 'JWT',
testMatch: ['<rootDir>/packages/jwt/__tests__/**/*.test.ts'],
},
{
displayName: 'MESSAGES',
testMatch: ['<rootDir>/packages/messages/__tests__/**/*.test.ts'],
},
{
displayName: 'NUMBER INSIGHTS',
testMatch: [
'<rootDir>/packages/number-insights/__tests__/**/*.test.ts',
],
},
{
displayName: 'NUMBERS',
testMatch: ['<rootDir>/packages/numbers/__tests__/**/*.test.ts'],
},
{
displayName: 'PRICING',
testMatch: ['<rootDir>/packages/pricing/__tests__/**/*.test.ts'],
},
{
displayName: 'SERVER CLIENT',
testMatch: [
'<rootDir>/packages/server-client/__tests__/**/*.test.ts',
],
},
{
displayName: 'SERVER SDK',
testMatch: ['<rootDir>/packages/server-sdk/__tests__/**/*.test.ts'],
},
{
displayName: 'SMS',
testMatch: ['<rootDir>/packages/sms/__tests__/**/*.test.ts'],
},
{
displayName: 'VERIFY',
testMatch: ['<rootDir>/packages/verify/__tests__/**/*.test.ts'],
},
{
displayName: 'VETCH',
testMatch: ['<rootDir>/packages/vetch/__tests__/**/*.test.ts'],
},
{
displayName: 'VIDEO',
testMatch: ['<rootDir>/packages/video/__tests__/**/*.test.ts'],
},
{
displayName: 'VOICE',
testMatch: ['<rootDir>/packages/voice/__tests__/**/*.test.ts'],
},
],
moduleNameMapper: {
'@vonage/(.+)': '<rootDir>/packages/$1/lib',
},
};

export default config;
Loading