rsnext/examples/with-redux/jest.config.ts
Lee Robinson dd4215b81e
Update Redux example to use Toolkit + update dependencies. (#29104)
After talking with markerikson, I've made some updates to the Redux examples:

- Updated the `with-redux` example to use the Redux Toolkit + TypeScript example
- Updated dependencies of `with-redux` to work with latest testing setup
- Removed `with-redux-toolkit` in favor of `with-redux`
- Removed `with-redux-toolkit-typescript` in favor of `with-redux`
- Removed `with-redux-code-splitting` in favor of `with-redux`
2021-09-15 15:34:31 +00:00

17 lines
397 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',
},
testEnvironment: 'jsdom',
globals: {
'ts-jest': {
tsconfig: 'tsconfig.test.json',
},
},
}
export default config