summaryrefslogtreecommitdiffstats
path: root/vid-app-common/jest.config.js
blob: e9ca59b110b18c761f4286fe70c8d10cf2d936ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
'n18' href='#n18'>18
19
20
21
22
23
24
25
26
27
28
29
const ngxWallabyJest = require('ngx-wallaby-jest');

module.exports = function (wallaby) {
  return {
    files: [
      'src/**/*.+(ts|html|json|snap|css|less|sass|scss|jpg|jpeg|gif|png|svg)',
      'tsconfig.json',
      'tsconfig.spec.json',
      'jest.config.js',
      '!src/**/*.spec.ts',
    ],

    tests: ['src/**/*.spec.ts'],

    env: {
      type: 'node',
      runner: 'node'
    },
    compilers: {
      '**/*.ts?(x)': wallaby.compilers.typeScript({ module: 'commonjs' }),
    },
    preprocessors: {
      // This translate templateUrl and styleUrls to the right implementation
      // For wallaby
      'projects/**/*.component.ts': ngxWallabyJest,
    },
    testFramework: 'jest'
  };
};