teleport/jest.config.js
Jeff Pihach 26f6022689
Initial pass at lint and test GHA for UI. (#21110)
* Initial pass at lint and test GHA for UI.

* Fix lint

* Add --frozen-lockfile

* Skip the e directory if it doesn't exist while linting.

* Update failing snapshots.

* use a more reasonable filter for eslint to support missing e

* ignore type check on e imports.

* ignore failing file that requires e teleterm file.

* fix lint

* quiet down the log output for prettier-write.
2023-02-02 22:56:55 +00:00

22 lines
593 B
JavaScript

const config = require('@gravitational/build/jest/config');
process.env.TZ = 'UTC';
/** @type {import('@jest/types').Config.InitialOptions} */
module.exports = {
...config,
globals: {
electron: {},
},
testPathIgnorePatterns: [
// Skipped until e files are removed from teleterm.
'web/packages/teleterm/src/ui/TabHost/TabHost.test.tsx',
],
collectCoverageFrom: [
// comment out until shared directory is finished testing
// '**/packages/design/src/**/*.jsx',
'**/packages/shared/components/**/*.jsx',
],
coverageReporters: ['text-summary', 'lcov'],
};