default-exclude.js 578 B

12345678910111213141516171819202122
  1. 'use strict';
  2. const defaultExtension = require('./default-extension.js');
  3. const testFileExtensions = defaultExtension
  4. .map(extension => extension.slice(1))
  5. .join(',');
  6. module.exports = [
  7. 'coverage/**',
  8. 'packages/*/test{,s}/**',
  9. '**/*.d.ts',
  10. 'test{,s}/**',
  11. `test{,-*}.{${testFileExtensions}}`,
  12. `**/*{.,-}test.{${testFileExtensions}}`,
  13. '**/__tests__/**',
  14. /* Exclude common development tool configuration files */
  15. '**/{ava,babel,nyc}.config.{js,cjs,mjs}',
  16. '**/jest.config.{js,cjs,mjs,ts}',
  17. '**/{karma,rollup,webpack}.config.js',
  18. '**/.{eslint,mocha}rc.{js,cjs}'
  19. ];