Skip to content

Commit d60c24f

Browse files
refactor: remove unnecessary folder
1 parent c28bc40 commit d60c24f

File tree

10 files changed

+15
-15
lines changed

10 files changed

+15
-15
lines changed

__mocks__/provider/handlers/challenges.ts renamed to __mocks__/handlers/challenges.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { http, HttpResponse } from "msw";
2-
import { challenge, submission } from "../../fixtures/challenge";
2+
import { challenge, submission } from "../fixtures/challenge";
33
const baseUrl = process.env.NEXT_PUBLIC_API_BASE_URL
44

55
export const challengesHandlers = [

__mocks__/provider/handlers/community.ts renamed to __mocks__/handlers/community.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { http, HttpResponse } from "msw";
2-
import { mockCommunity } from "../../fixtures/community";
3-
import { mockScoreboard } from "../../fixtures/scoreboard";
4-
import { mockCourse } from "../../fixtures/course";
2+
import { mockCommunity } from "../fixtures/community";
3+
import { mockScoreboard } from "../fixtures/scoreboard";
4+
import { mockCourse } from "../fixtures/course";
55
const baseUrl = process.env.NEXT_PUBLIC_API_BASE_URL
66

77
export const communityHandlers = [

__mocks__/provider/handlers/courses.ts renamed to __mocks__/handlers/courses.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { HttpResponse, http } from "msw";
2-
import { mockCourse, mockLearningModule } from "../../fixtures/course";
2+
import { mockCourse, mockLearningModule } from "../fixtures/course";
33

44

55
const baseUrl = process.env.NEXT_PUBLIC_API_BASE_URL

__mocks__/provider/handlers/index.ts renamed to __mocks__/handlers/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { HttpResponse, http } from "msw"
22
import { challengesHandlers } from "./challenges"
33
import { communityHandlers } from "./community"
44
import { profileHandler } from "./profile"
5-
import { mockBounty } from "../../fixtures/bounty"
5+
import { mockBounty } from "../fixtures/bounty"
66
import { teamHandler } from "./teams"
77

88
const baseUrl = process.env.NEXT_PUBLIC_API_BASE_URL

__mocks__/provider/handlers/profile.ts renamed to __mocks__/handlers/profile.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { HttpResponse, http } from "msw";
2-
import { certificate, mockMinting, mockReputation } from "../../fixtures/profile";
3-
import { mockCommunity } from "../../fixtures/community";
4-
import { submission } from "../../fixtures/challenge";
5-
import { mockUser } from "../../fixtures/user";
2+
import { certificate, mockMinting, mockReputation } from "../fixtures/profile";
3+
import { mockCommunity } from "../fixtures/community";
4+
import { submission } from "../fixtures/challenge";
5+
import { mockUser } from "../fixtures/user";
66

77
const baseUrl = process.env.NEXT_PUBLIC_API_BASE_URL
88

__mocks__/provider/handlers/teams.ts renamed to __mocks__/handlers/teams.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { HttpResponse, http } from "msw"
2-
import { mockInvite, mockTeam } from "../../fixtures/challenge"
2+
import { mockInvite, mockTeam } from "../fixtures/challenge"
33

44
const baseUrl = process.env.NEXT_PUBLIC_API_BASE_URL
55

__mocks__/provider/handlers/user.ts renamed to __mocks__/handlers/user.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { HttpResponse, http } from "msw";
2-
import { mockNotification, mockUser } from "../../fixtures/user";
3-
import { mockReferral } from "../../fixtures/referrals";
2+
import { mockNotification, mockUser } from "../fixtures/user";
3+
import { mockReferral } from "../fixtures/referrals";
44

55

66
const baseUrl = process.env.NEXT_PUBLIC_API_BASE_URL

__mocks__/provider/handlers/wallets.ts renamed to __mocks__/handlers/wallets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { HttpResponse, http } from "msw";
2-
import { mockWallet } from "../../fixtures/wallet";
2+
import { mockWallet } from "../fixtures/wallet";
33

44

55
const baseUrl = process.env.NEXT_PUBLIC_API_BASE_URL
File renamed without changes.

jest.setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { setupServer } from 'msw/node';
2-
import { handlers } from './__mocks__/provider/handlers';
2+
import { handlers } from './__mocks__/handlers';
33

44
const server = setupServer(...handlers);
55

0 commit comments

Comments
 (0)