rsnext/examples/with-redux-toolkit-typescript/jest.config.ts
Jaime Leonardo Suncin Cruz f4e610d192
Simplify with redux toolkit typescript (#24161)
Remove clock and notes features to be consistent with `with-redux-toolkit` example, add unit test with Jest

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.

## Documentation / Examples

- [x] Make sure the linting passes
2021-04-20 03:09:49 +00:00

16 lines
369 B
TypeScript

import type { InitialOptionsTsJest } from 'ts-jest/dist/types'
const config: InitialOptionsTsJest = {
preset: 'ts-jest',
setupFilesAfterEnv: ['<rootDir>/setupTests.ts'],
transform: {
'.+\\.(css|styl|less|sass|scss)$': 'jest-css-modules-transform',
},
globals: {
'ts-jest': {
tsconfig: 'tsconfig.test.json',
},
},
}
export default config