1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2025-05-29 22:37:44 +02:00

chore: setup semantic-release

This commit is contained in:
divlo
2021-04-20 01:15:07 +02:00
parent 1b25007e77
commit 909352589f
7 changed files with 7794 additions and 124 deletions

25
jest.config.js Normal file
View File

@ -0,0 +1,25 @@
module.exports = {
roots: ['<rootDir>'],
transform: {
'^.+\\.(js|jsx|ts|tsx)$': 'babel-jest'
},
moduleDirectories: ['node_modules', './'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
setupFilesAfterEnv: [
'@testing-library/jest-dom/extend-expect',
'@testing-library/react'
],
collectCoverage: true,
collectCoverageFrom: [
'**/*.{js,jsx,ts,tsx}',
'!**/*.d.ts',
'!**/.next/**',
'!**/node_modules/**',
'!**/next.config.js',
'!**/postcss.config.js',
'!**/workbox-*.js',
'!**/sw.js'
],
coverageDirectory: './coverage',
coverageReporters: ['text', 'cobertura']
}