feat: initial commit — tcb_devportal Next.js app
Some checks failed
homelab-k8s-services/tcb_devportal/pipeline/head There was a failure building this commit
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.
This commit is contained in:
28
jest.config.js
Normal file
28
jest.config.js
Normal file
@@ -0,0 +1,28 @@
|
||||
/* 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)
|
||||
Reference in New Issue
Block a user