mirror of
https://github.com/gravitational/teleport
synced 2024-10-21 01:34:01 +00:00
8446ad4c63
* Avoid chunking agent output too much with stripAnsiStream * Use close event rather than exit event to signal process exit * Do not include process logs when logging agent state update * Log attempt at killing agent before it happens, not after That is because terminateWithTimeout might end up not killing the agent in the end if the process failed to spawn. * Fix AgentRunner test
26 lines
740 B
JavaScript
26 lines
740 B
JavaScript
const config = require('@gravitational/build/jest/config');
|
|
|
|
process.env.TZ = 'UTC';
|
|
|
|
const esModules = ['strip-ansi', 'ansi-regex'].join('|');
|
|
|
|
/** @type {import('@jest/types').Config.InitialOptions} */
|
|
module.exports = {
|
|
...config,
|
|
globals: {
|
|
electron: {},
|
|
},
|
|
collectCoverageFrom: [
|
|
// comment out until shared directory is finished testing
|
|
// '**/packages/design/src/**/*.jsx',
|
|
'**/packages/shared/components/**/*.jsx',
|
|
],
|
|
transformIgnorePatterns: [`/node_modules/(?!${esModules})`],
|
|
coverageReporters: ['text-summary', 'lcov'],
|
|
testPathIgnorePatterns: ['e2e'],
|
|
setupFilesAfterEnv: [
|
|
'<rootDir>/web/packages/shared/setupTests.tsx',
|
|
'<rootDir>/web/packages/build/jest/customMatchers.ts',
|
|
],
|
|
};
|