mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 09:22:43 +03:00
fdcdc14c01
https://github.com/hasura/graphql-engine-mono/pull/1472 GitOrigin-RevId: e44f6bc6d819d049edd042ecd1e4e951a45f4ab8
34 lines
828 B
JavaScript
34 lines
828 B
JavaScript
module.exports = {
|
|
roots: ['<rootDir>/src'],
|
|
transform: {
|
|
'^.+\\.(ts|tsx|js|jsx)?$': 'ts-jest',
|
|
},
|
|
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$',
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
|
|
moduleDirectories: ['node_modules', 'src'],
|
|
testEnvironment: 'jsdom',
|
|
moduleNameMapper: {
|
|
'\\.(css|less|scss|sass)$': 'identity-obj-proxy',
|
|
},
|
|
globals: {
|
|
'ts-jest': {
|
|
tsconfig: 'tsconfig.test.json',
|
|
},
|
|
__DEV__: true,
|
|
CONSOLE_ASSET_VERSION: Date.now().toString(),
|
|
'process.hrtime': () => null,
|
|
__DEVELOPMENT__: true,
|
|
__CLIENT__: true,
|
|
__SERVER__: true,
|
|
__DISABLE_SSR__: true,
|
|
__DEVTOOLS__: true,
|
|
socket: true,
|
|
webpackIsomorphicTools: true,
|
|
window: {
|
|
__env: {
|
|
nodeEnv: 'development',
|
|
},
|
|
},
|
|
},
|
|
};
|