{"size": 1257, "ext": "js", "max_stars_repo_path": "packages/client/tests/functional/jest.config.js", "max_stars_repo_name": "prisma-korea/prisma", "max_stars_repo_stars_event_min_datetime": "2019-07-01T06:38:05.000Z", "max_stars_repo_stars_event_max_datetime": "2020-03-31T12:53:55.000Z", "max_issues_repo_path": "packages/client/tests/functional/jest.config.js", "max_issues_repo_name": "prisma-korea/prisma", "max_issues_repo_issues_event_min_datetime": "2019-06-27T12:56:12.000Z", "max_issues_repo_issues_event_max_datetime": "2020-03-31T13:14:19.000Z", "max_forks_repo_path": "packages/client/tests/functional/jest.config.js", "max_forks_repo_name": "prisma-korea/prisma", "max_forks_repo_forks_event_min_datetime": "2019-07-02T07:24:04.000Z", "max_forks_repo_forks_event_max_datetime": "2020-03-31T08:40:43.000Z"}
{"max_stars_count": 2275, "max_issues_count": 1756, "max_forks_count": 253, "avg_line_length": 26.7446808511, "max_line_length": 79, "alphanum_fraction": 0.5990453461}
module.exports = {
  testMatch: [
    '**/*.ts',
    '!(**/*.d.ts)',
    '!(**/_utils/**)',
    '!(**/_matrix.ts)',
    '!(**/_schema.ts)',
    '!(**/.generated/**)',
  ],
  transform: { '^.+\\.(t|j)sx?$': '@swc/jest' },
  reporters: [
    'default',
    [
      'jest-junit',
      {
        addFileAttribute: 'true',
        ancestorSeparator: ' › ',
        classNameTemplate: '{classname}',
        titleTemplate: '{title}',
      },
    ],
  ],
  globalSetup: './_utils/globalSetup.js',
  snapshotSerializers: ['@prisma/sdk/src/utils/jestSnapshotSerializer'],
  setupFilesAfterEnv: ['./_utils/setupFilesAfterEnv.ts'],
  testTimeout: 10000,
  collectCoverage: process.env.CI ? true : false,

  /**
   * Limit concurrency to 1 worker for now for two reasons.
   *
   * First reason:
   *
   * Database isolation in setupTestSuiteDbURI() doesn't seem to work properly.
   * Tests are using the same database concurrently, which causes constraint
   * violation errors and "database does not exist" errors.
   * TODO: fix this.
   *
   * Second reason:
   *
   * Jest crashes when an assertion fails with an object that contains a BigInt
   * if more than one worker is used.
   * See https://github.com/facebook/jest/issues/11617
   */
  maxWorkers: 1,
}
