Some checks failed
homelab-k8s-services/tcb_devportal/pipeline/head There was a failure building this commit
Includes Helm chart (tcb-devportal), Jenkinsfile with homelab CI pipeline, and Next.js app source.
29 lines
733 B
JavaScript
29 lines
733 B
JavaScript
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
const nextJest = require('next/jest')
|
|
|
|
const createJestConfig = (nextJest.default || nextJest)({ dir: './' })
|
|
|
|
const customJestConfig = {
|
|
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
|
|
testEnvironment: 'jest-environment-jsdom',
|
|
moduleNameMapper: {
|
|
'^@/(.*)$': '<rootDir>/src/$1',
|
|
},
|
|
transformIgnorePatterns: [
|
|
'/node_modules/(?!next-intl/.*)',
|
|
],
|
|
testMatch: [
|
|
'**/_tests/**/*.test.ts',
|
|
'**/_tests/**/*.test.tsx',
|
|
'**/_tests_/**/*.test.ts',
|
|
'**/_tests_/**/*.test.tsx',
|
|
],
|
|
collectCoverageFrom: [
|
|
'src/**/*.{ts,tsx}',
|
|
'!src/**/*.d.ts',
|
|
'!src/**/*.stories.tsx',
|
|
],
|
|
}
|
|
|
|
module.exports = createJestConfig(customJestConfig)
|