๐Ÿ“ฆ ionic-team / ionicons

๐Ÿ“„ jest.config.mjs ยท 19 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19import path from 'path';
import url from 'url';

import { createJestStencilPreset } from 'jest-stencil-runner';

const __dirname = path.dirname(url.fileURLToPath(import.meta.url));

export default createJestStencilPreset({
  rootDir: __dirname,  
  // Add any additional Jest configuration here
  collectCoverageFrom: [
    'src/**/*.{ts,tsx}',
    '!src/**/*.d.ts',
  ],
  testMatch: [
    '**/__tests__/**/*.(ts|tsx|js)',
    '**/*.(test|spec).(ts|tsx|js)'
  ]
});