UNPKG

jest-gwt

Version:

A small library to help Jest support given-when-then style testing without a bunch of overhead

16 lines (12 loc) 489 B
import type { GwtDefinition } from 'gwt-runner'; import gwtRunner, { TestContext } from 'gwt-runner'; import { test as jestTest, beforeEach as jestBeforeEach, afterEach as jestAfterEach, } from '@jest/globals'; import withAspectBuilder from './withAspect'; export default gwtRunner(jestTest); export { TestContext }; export const xtest = (() => {}) as (<T>(name: string, def: GwtDefinition<T>) => void); export const withAspect = withAspectBuilder(jestBeforeEach, jestAfterEach);