Creates a helper for writing tests towards multiple different combinations of versions provided from a context.
A key that uniquely identifies the context.
const context = createVersionedContextForTesting('my-context');afterEach(() => { context.reset();});it('should work when provided with version 1', () => { context.set({1: 'value-for-version-1'}) // ...}) Copy
const context = createVersionedContextForTesting('my-context');afterEach(() => { context.reset();});it('should work when provided with version 1', () => { context.set({1: 'value-for-version-1'}) // ...})
Creates a helper for writing tests towards multiple different combinations of versions provided from a context.