Skip to content

Commit

Permalink
Merge pull request #1130 from serlo/tests-without-typechecking
Browse files Browse the repository at this point in the history
test: No typechecking while running jest
  • Loading branch information
kulla authored Nov 22, 2023
2 parents ceb07f1 + e0696b6 commit 6b51cfb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion jest.config-pacts-serlo-org-database-layer.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const { pathsToModuleNameMapper } = require('ts-jest')
const { compilerOptions } = require('./tsconfig.json')

module.exports = {
preset: 'ts-jest',
modulePaths: ['<rootDir>/packages'],
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
moduleNameMapper: {
Expand All @@ -22,7 +21,9 @@ module.exports = {
testEnvironment: 'node',
testRegex: '/__tests-pacts__/index\\.ts',
transform: {
'^.+\\.tsx?$': ['ts-jest', { useESM: true, isolatedModules: true }],
'^.+\\.graphql$': './transform-graphql-jest-28-shim.cjs',
},
extensionsToTreatAsEsm: ['.ts', '.tsx', '.mts'],
watchPathIgnorePatterns: ['<rootDir>/pacts/'],
}
3 changes: 2 additions & 1 deletion jest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const { pathsToModuleNameMapper } = require('ts-jest')
const { compilerOptions } = require('./tsconfig.json')

module.exports = {
preset: 'ts-jest',
modulePaths: ['<rootDir>/packages'],
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
moduleNameMapper: {
Expand All @@ -22,6 +21,8 @@ module.exports = {
testEnvironment: 'node',
testPathIgnorePatterns: ['/node_modules/', '/__tests__\\/__utils__/'],
transform: {
'^.+\\.tsx?$': ['ts-jest', { useESM: true, isolatedModules: true }],
'^.+\\.graphql$': './transform-graphql-jest-28-shim.cjs',
},
extensionsToTreatAsEsm: ['.ts', '.tsx', '.mts'],
}

0 comments on commit 6b51cfb

Please sign in to comment.