File size: 521 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
const path = require( 'path' );
const base = require( '@automattic/calypso-jest' );

process.env.TZ = 'UTC';

/**
 * Can't use `preset: '@automattic/calypso-jest'` because preset are not recursive. In other words,
 * if this config contains `preset`, then it can't be consumed as a preset by anybody else.
 */
module.exports = {
	...base,
	cacheDirectory: path.join( __dirname, '../../.cache/jest' ),
	globals: {
		__i18n_text_domain__: 'default',
	},
	setupFilesAfterEnv: [ '<rootDir>../../test/packages/setup.js' ],
};