shootismoke/backend

View on GitHub
jest.config.js

Summary

Maintainability
A
0 mins
Test Coverage
/* eslint-disable */

const jestMongoDb = require('@shelf/jest-mongodb/jest-preset');
const tsJest = require('ts-jest/jest-preset');

module.exports = {
  ...tsJest,
  ...jestMongoDb,
  collectCoverageFrom: [
    '**/api/**/*.ts',
    '**/src/**/*.ts',
    '!**/index.ts', // index.ts only re-exports stuff
    '!**/testUtil.ts' // These files are used in tests
  ],
  setupFiles: ['./e2e/util/setup.ts'],
  testEnvironment: 'node',
  testMatch: ['**/*.spec.ts']
};