test(server): move tests out of src folder (#4366)

This commit is contained in:
LongYinan authored and GitHub committed 2023-09-15 07:34:14 +00:00
1 parent b5e8fecfd0
commit 1aec1ce7d0
36 files changed
+233 -159

No files matched your search

+2 -2
View File
@@ -497,8 +497,8 @@ export const uploadAvatarMutation = {
definitionName: 'uploadAvatar',
containsFile: true,
query: `
mutation uploadAvatar($id: String!, $avatar: Upload!) {
uploadAvatar(id: $id, avatar: $avatar) {
mutation uploadAvatar($avatar: Upload!) {
uploadAvatar(avatar: $avatar) {
id
name
avatarUrl
@@ -1,5 +1,5 @@
mutation uploadAvatar($id: String!, $avatar: Upload!) {
uploadAvatar(id: $id, avatar: $avatar) {
mutation uploadAvatar($avatar: Upload!) {
uploadAvatar(avatar: $avatar) {
id
name
avatarUrl
-1
View File
@@ -441,7 +441,6 @@ export type SignUpMutation = {
};
export type UploadAvatarMutationVariables = Exact<{
id: Scalars['String']['input'];
avatar: Scalars['Upload']['input'];
}>;
+2 -1
View File
@@ -1,7 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"types": ["node"]
"types": ["node"],
"outDir": "./lib/scripts"
},
"include": ["./src/scripts"]
}
@@ -136,7 +136,6 @@ describe('GraphQL wrapper for SWR', () => {
mutation: uploadAvatarMutation,
});
trigger({
id: '1',
avatar: new File([''], 'avatar.png'),
});
}