Skip to content

Commit e1bc6c5

Browse files
authored
chore(parser): remove faker dependency (#3476)
1 parent bdec3af commit e1bc6c5

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/parser/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,6 @@
379379
}
380380
},
381381
"devDependencies": {
382-
"@anatine/zod-mock": "^3.13.3",
383-
"@faker-js/faker": "^9.0.2"
382+
"@anatine/zod-mock": "^3.13.3"
384383
}
385384
}

packages/parser/tests/unit/schema/appsync.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
* Test built-in AppSync resolver schemas
33
*/
44

5-
import { faker } from '@faker-js/faker';
65
import { describe, expect, it } from 'vitest';
76
import {
87
AppSyncBatchResolverSchema,
@@ -56,7 +55,7 @@ describe('AppSync Resolver Schemas', () => {
5655
groups: null,
5756
issuer:
5857
'https://cognito-idp.us-west-2.amazonaws.com/us-west-xxxxxxxxxxx',
59-
sourceIp: [faker.internet.ip()],
58+
sourceIp: ['1.1.1.1'],
6059
sub: '192879fc-a240-4bf1-ab5a-d6a00f3063f9',
6160
username: 'jdoe',
6261
},
@@ -88,7 +87,7 @@ describe('AppSync Resolver Schemas', () => {
8887
cognitoIdentityAuthType: 'cognitoIdentityAuthType',
8988
cognitoIdentityId: 'cognitoIdentityId',
9089
cognitoIdentityPoolId: 'cognitoIdentityPoolId',
91-
sourceIp: [faker.internet.ip()],
90+
sourceIp: ['1.1.1.1'],
9291
userArn: 'arn:aws:sts::012345678901:assumed-role/role',
9392
username: 'AROAXYKJUOW6FHGUSK5FA:username',
9493
},

0 commit comments

Comments
 (0)