UNPKG

adastra-ui-comment

Version:

Testing locally 1) in this file - `npm i` install dependencies - `npm run build` or `npm run tsc` to build your module 2) in childApp - in package.json under dependencies add ui-astra-assets with file:(relativePathToRepo) - "ui-astra-a

40 lines (39 loc) 1.11 kB
module.exports = { preset: 'ts-jest/presets/js-with-babel', roots: ['source/'], collectCoverageFrom: [ 'source/**/*.{ts,tsx}', '!source/**/constants.ts', '!source/**/messages.ts', '!source/**/*.d.{ts,tsx}', '!source/**/*.test.{js,ts,tsx}', '!source/*/RbGenerated*/*.{ts,tsx}', '!source/app.{ts,tsx}', '!source/types/*.{ts,tsx}', '!source/*/*/Loadable.{ts,tsx}', '!source/coverage/**/*.{ts,tsx}', '!source/dev/**/*.{ts,tsx}', '!source/**/parameters.tsx', ], coverageThreshold: { global: { statements: 80, branches: 80, functions: 80, lines: 80, }, }, moduleFileExtensions: ['ts', 'tsx', 'js'], globals: { 'ts-jest': { tsConfig: 'tsconfig.json', }, }, moduleDirectories: ['node_modules', 'source'], moduleNameMapper: { '.*\\.(css|less|styl|scss|sass)$': '<rootDir>/internals/mocks/cssModule.js', '.*\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/internals/mocks/image.js', }, snapshotSerializers: ['enzyme-to-json/serializer'], };