mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 17:02:49 +03:00
66077866cb
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6829 GitOrigin-RevId: b0a6a7ccc647ca13863f4c296b7c6b993f784bbb
34 lines
864 B
JavaScript
34 lines
864 B
JavaScript
const nxPreset = require('@nrwl/jest/preset').default;
|
|
|
|
module.exports = {
|
|
...nxPreset,
|
|
moduleNameMapper: {
|
|
'\\.(css|less|scss|sass|jpg|ico|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
|
|
'jest-transform-stub',
|
|
},
|
|
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,
|
|
__env: {
|
|
consoleType: 'oss',
|
|
},
|
|
window: {
|
|
__env: {
|
|
nodeEnv: 'development',
|
|
serverVersion: 'v1.0.0', // FIXME : moving this to the above __env block seem to be breaking some existing tests
|
|
},
|
|
},
|
|
},
|
|
};
|