Skip to content

Commit b8067d7

Browse files
committed
build(dev-deps): bump vitest to v4
1 parent 6cc0f25 commit b8067d7

5 files changed

Lines changed: 7513 additions & 255 deletions

File tree

__tests__/index.test.ts

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,18 @@ vi.mocked(appCredentialsFromString).mockReturnValue({
3232
const getAuthenticated = vi.fn();
3333
const getByUsername = vi.fn();
3434

35-
vi.mocked(GitHub).mockReturnValue({
36-
rest: {
37-
apps: {
38-
getAuthenticated
39-
},
40-
users: {
41-
getByUsername
42-
}
43-
}
44-
} as any); // eslint-disable-line @typescript-eslint/no-explicit-any
35+
vi.mocked(GitHub).mockImplementation(
36+
class {
37+
rest = {
38+
apps: {
39+
getAuthenticated
40+
},
41+
users: {
42+
getByUsername
43+
}
44+
};
45+
} as unknown as typeof GitHub
46+
);
4547

4648
// Spy the action's entrypoint
4749
const runSpy = vi.spyOn(index, 'run');

0 commit comments

Comments
 (0)