mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2026-03-10 14:42:41 +03:00
* Convert @redux-devtools/instrument to ESM * Update @redux-devtools/instrument version and format Change version of @redux-devtools/instrument from patch to major and convert to ESM. * Exports? * Use exports everywhere * Use jest.ts * Fix redux-devtools test * Updates * Update
17 lines
401 B
TypeScript
17 lines
401 B
TypeScript
import { createDefaultEsmPreset, type JestConfigWithTsJest } from 'ts-jest';
|
|
|
|
const presetConfig = createDefaultEsmPreset({
|
|
tsconfig: 'tsconfig.test.json',
|
|
});
|
|
|
|
const jestConfig: JestConfigWithTsJest = {
|
|
...presetConfig,
|
|
testEnvironment: 'jsdom',
|
|
moduleNameMapper: {
|
|
'^(\\.{1,2}/.*)\\.js$': '$1',
|
|
'\\.css$': '<rootDir>/test/__mocks__/styleMock.ts',
|
|
},
|
|
};
|
|
|
|
export default jestConfig;
|