react-use/jest.config.base.ts
xobotyi a087deb48e
fix: proper definition for isBrowser and isNavigator states.
should fix: #1777

Also introduce jest config for ssr tests (it fails hard now).
2021-01-31 10:33:48 +03:00

14 lines
302 B
TypeScript

import type { Config } from '@jest/types';
export const baseJestConfig: Config.InitialOptions = {
'preset': 'ts-jest',
'clearMocks': true,
'coverageDirectory': 'coverage',
'testMatch': [
'<rootDir>/tests/**/*.test.(ts|tsx)'
],
'setupFiles': [
'<rootDir>/tests/setupTests.ts'
]
}