UNPKG

testeranto

Version:

the AI powered BDD test framework for typescript projects

23 lines (22 loc) 664 B
export const testAdapter = { beforeAll: async (input, testResource, pm) => { return input; }, beforeEach: async (subject, initializer, testResource, initialValues, pm) => { const result = initializer()(); return result; }, andWhen: async (store, whenCB, testResource, utils) => { const result = whenCB(store, utils); return result; }, butThen: async (store, thenCB, testResource, pm) => { const result = thenCB(store, pm); return result; }, afterEach: async (store, key, pm) => { return store; }, afterAll: (store, pm) => { }, assertThis: (x) => x, };