UNPKG

react-powerbi

Version:

Easily embed your PowerBI Dashboard to your React App

24 lines (22 loc) 666 B
module.exports = { preset: 'ts-jest', 'roots': [ '<rootDir>' ], 'testMatch': [ '**/?(*.)+(spec|test).+(ts|tsx|js)' ], 'transform': { '^.+\\.(ts|tsx)$': 'ts-jest' }, 'snapshotSerializers': ['enzyme-to-json/serializer'], 'setupFilesAfterEnv': ['<rootDir>/test/setupEnzyme.ts'], globals: { // we must specify a custom tsconfig for tests because we need the typescript transform // to transform jsx into js rather than leaving it jsx such as the next build requires. you // can see this setting in tsconfig.jest.json -> "jsx": "react" 'ts-jest': { tsConfig: 'tsconfig.jest.json' } } }