mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 17:02:49 +03:00
af97da8496
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5308 GitOrigin-RevId: cd057218397e724ea7a92cdd025fae508d5774a7
38 lines
978 B
JavaScript
38 lines
978 B
JavaScript
module.exports = {
|
|
roots: ['<rootDir>/src'],
|
|
transform: {
|
|
'^.+\\.(ts|tsx|js|jsx)?$': 'ts-jest',
|
|
'^.+\\.svg$': 'jest-svg-transformer',
|
|
},
|
|
testRegex: '^.+\\.(test|spec).[jt]sx?$',
|
|
setupFilesAfterEnv: ['<rootDir>/src/setupTests.ts'],
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
|
|
moduleDirectories: ['node_modules', 'src'],
|
|
testEnvironment: 'jsdom',
|
|
moduleNameMapper: {
|
|
'^@/(.*)$': '<rootDir>/src/$1',
|
|
'\\.(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',
|
|
serverVersion: 'v1.0.0',
|
|
},
|
|
},
|
|
},
|
|
};
|