Skip to content

Commit 8e0982e

Browse files
nicklaslclaude
andauthored
build(deps-dev): bump vitest from 3.2.4 to 4.1.7 in /openfeature-provider/js (#439)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 95144b6 commit 8e0982e

3 files changed

Lines changed: 578 additions & 823 deletions

File tree

openfeature-provider/js/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"@types/node": "^24.0.1",
6969
"@types/react": "^19",
7070
"@types/react-dom": "^19",
71-
"@vitest/coverage-v8": "^3.2.4",
71+
"@vitest/coverage-v8": "^4.1.7",
7272
"debug": "^4.4.3",
7373
"dotenv": "^17.2.2",
7474
"happy-dom": "^20.3.4",
@@ -80,7 +80,7 @@
8080
"ts-proto": "^2.7.3",
8181
"tsdown": "latest",
8282
"typescript": "^5.9.3",
83-
"vitest": "^3.2.4"
83+
"vitest": "^4.1.7"
8484
},
8585
"peerDependencies": {
8686
"@openfeature/core": "^1.0.0",

openfeature-provider/js/src/react/client.test.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import FlagBundleType, * as FlagBundle from '../flag-bundle';
99
import { ErrorCode } from '../types';
1010

1111
type FlagBundle = FlagBundleType;
12+
type ApplyFn = (flagName: string) => Promise<void>;
1213

1314
const createTestBundle = (flags: FlagBundle['flags'] = {}): FlagBundle => ({
1415
flags,
@@ -17,7 +18,7 @@ const createTestBundle = (flags: FlagBundle['flags'] = {}): FlagBundle => ({
1718
});
1819

1920
describe('useFlag', () => {
20-
let mockApply: ReturnType<typeof vi.fn>;
21+
let mockApply: ReturnType<typeof vi.fn<ApplyFn>>;
2122

2223
beforeEach(() => {
2324
mockApply = vi.fn().mockResolvedValue(undefined);
@@ -360,7 +361,7 @@ describe('useFlag', () => {
360361
});
361362

362363
describe('useFlagDetails', () => {
363-
let mockApply: ReturnType<typeof vi.fn>;
364+
let mockApply: ReturnType<typeof vi.fn<ApplyFn>>;
364365

365366
beforeEach(() => {
366367
mockApply = vi.fn().mockResolvedValue(undefined);

0 commit comments

Comments
 (0)