Skip to content

Commit 8994903

Browse files
committed
fixup: Symbol.for for consistency if multiple versions installed
1 parent 27f97f1 commit 8994903

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stubs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { NotAMockFunctionError } from './errors.ts'
77
import { getFallbackImplementation } from './fallback-implementation.ts'
88
import type { AnyCallable, Mock, ParametersOf } from './types.ts'
99

10-
const BEHAVIORS_KEY = Symbol('behaviors')
10+
const BEHAVIORS_KEY = Symbol.for('vitest-when:behaviors')
1111

1212
interface WhenStubImplementation<TFunc extends AnyCallable> {
1313
(...args: ParametersOf<TFunc>): unknown

0 commit comments

Comments
 (0)