Skip to content

Commit

Permalink
Adjusted Jest config for typescript to recent format
Browse files Browse the repository at this point in the history
  • Loading branch information
oskardudycz committed Jan 10, 2024
1 parent 7a9eddf commit 851a0fe
Show file tree
Hide file tree
Showing 12 changed files with 72 additions and 72 deletions.
12 changes: 6 additions & 6 deletions samples/closingTheBooks/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ module.exports = {
testEnvironment: 'node',
roots: ['<rootDir>/src'],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
'^.+\\.(ts|tsx)$': [
'ts-jest',
{
tsconfig: './tsconfig.json',
},
],
},
setupFilesAfterEnv: ['./jest.setup.js'],
moduleNameMapper: {
'#core/(.*)': '<rootDir>/src/core/$1',
'#config': '<rootDir>/config.ts',
'#testing/(.*)': '<rootDir>/src/testing/$1',
},
globals: {
'ts-jest': {
tsconfig: './tsconfig.json',
},
},
};
12 changes: 6 additions & 6 deletions samples/decider/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ module.exports = {
testEnvironment: 'node',
roots: ['<rootDir>/src'],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
'^.+\\.(ts|tsx)$': [
'ts-jest',
{
tsconfig: './tsconfig.json',
},
],
},
setupFilesAfterEnv: ['./jest.setup.js'],
moduleNameMapper: {
'#core/(.*)': '<rootDir>/src/core/$1',
'#config': '<rootDir>/config.ts',
'#testing/(.*)': '<rootDir>/src/testing/$1',
},
globals: {
'ts-jest': {
tsconfig: './tsconfig.json',
},
},
};
12 changes: 6 additions & 6 deletions samples/eventsVersioning/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ module.exports = {
testEnvironment: 'node',
roots: ['<rootDir>/src'],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
'^.+\\.(ts|tsx)$': [
'ts-jest',
{
tsconfig: './tsconfig.json',
},
],
},
setupFilesAfterEnv: ['./jest.setup.js'],
moduleNameMapper: {
'#core/(.*)': '<rootDir>/src/core/$1',
'#testing/(.*)': '<rootDir>/src/testing/$1',
},
globals: {
'ts-jest': {
tsconfig: './tsconfig.json',
},
},
};
12 changes: 6 additions & 6 deletions samples/foundations/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ module.exports = {
testEnvironment: 'node',
roots: ['<rootDir>/src'],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
'^.+\\.(ts|tsx)$': [
'ts-jest',
{
tsconfig: './tsconfig.json',
},
],
},
setupFilesAfterEnv: ['./jest.setup.js'],
moduleNameMapper: {
'#core/(.*)': '<rootDir>/src/core/$1',
'#config': '<rootDir>/config.ts',
'#testing/(.*)': '<rootDir>/src/testing/$1',
},
globals: {
'ts-jest': {
tsconfig: './tsconfig.json',
},
},
};
12 changes: 6 additions & 6 deletions samples/from_crud_to_eventsourcing/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ module.exports = {
testEnvironment: 'node',
roots: ['<rootDir>/src'],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
'^.+\\.(ts|tsx)$': [
'ts-jest',
{
tsconfig: './tsconfig.json',
},
],
},
setupFilesAfterEnv: ['./jest.setup.js'],
moduleNameMapper: {
'#core/(.*)': '<rootDir>/src/core/$1',
'#config': '<rootDir>/config.ts',
'#testing/(.*)': '<rootDir>/src/testing/$1',
},
globals: {
'ts-jest': {
tsconfig: './tsconfig.json',
},
},
};
12 changes: 6 additions & 6 deletions samples/hotelManagement/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ module.exports = {
testEnvironment: 'node',
roots: ['<rootDir>/src'],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
'^.+\\.(ts|tsx)$': [
'ts-jest',
{
tsconfig: './tsconfig.json',
},
],
},
setupFilesAfterEnv: ['./jest.setup.js'],
moduleNameMapper: {
'#core/(.*)': '<rootDir>/src/core/$1',
'#testing/(.*)': '<rootDir>/src/testing/$1',
},
globals: {
'ts-jest': {
tsconfig: './tsconfig.json',
},
},
};
12 changes: 6 additions & 6 deletions samples/optimisticConcurrency/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ module.exports = {
testEnvironment: 'node',
roots: ['<rootDir>/src'],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
'^.+\\.(ts|tsx)$': [
'ts-jest',
{
tsconfig: './tsconfig.json',
},
],
},
setupFilesAfterEnv: ['./jest.setup.js'],
moduleNameMapper: {
'#core/(.*)': '<rootDir>/src/core/$1',
'#config': '<rootDir>/config.ts',
'#testing/(.*)': '<rootDir>/src/testing/$1',
},
globals: {
'ts-jest': {
tsconfig: './tsconfig.json',
},
},
};
12 changes: 6 additions & 6 deletions samples/simple/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ module.exports = {
testEnvironment: 'node',
roots: ['<rootDir>/src'],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
'^.+\\.(ts|tsx)$': [
'ts-jest',
{
tsconfig: './tsconfig.json',
},
],
},
setupFilesAfterEnv: ['./jest.setup.js'],
moduleNameMapper: {
'#core/(.*)': '<rootDir>/src/core/$1',
'#config': '<rootDir>/config.ts',
'#testing/(.*)': '<rootDir>/src/testing/$1',
},
globals: {
'ts-jest': {
tsconfig: './tsconfig.json',
},
},
};
12 changes: 6 additions & 6 deletions samples/snapshots/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ module.exports = {
testEnvironment: 'node',
roots: ['<rootDir>/src'],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
'^.+\\.(ts|tsx)$': [
'ts-jest',
{
tsconfig: './tsconfig.json',
},
],
},
setupFilesAfterEnv: ['./jest.setup.js'],
moduleNameMapper: {
'#core/(.*)': '<rootDir>/src/core/$1',
'#config': '<rootDir>/config.ts',
'#testing/(.*)': '<rootDir>/src/testing/$1',
},
globals: {
'ts-jest': {
tsconfig: './tsconfig.json',
},
},
};
12 changes: 6 additions & 6 deletions samples/unpeelingOnion/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ module.exports = {
testEnvironment: 'node',
roots: ['<rootDir>/src'],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
'^.+\\.(ts|tsx)$': [
'ts-jest',
{
tsconfig: './tsconfig.json',
},
],
},
setupFilesAfterEnv: ['./jest.setup.js'],
moduleNameMapper: {
'#core/(.*)': '<rootDir>/src/core/$1',
'#config': '<rootDir>/config.ts',
'#testing/(.*)': '<rootDir>/src/testing/$1',
},
globals: {
'ts-jest': {
tsconfig: './tsconfig.json',
},
},
};
12 changes: 6 additions & 6 deletions samples/webinar/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ module.exports = {
testEnvironment: 'node',
roots: ['<rootDir>/src'],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
'^.+\\.(ts|tsx)$': [
'ts-jest',
{
tsconfig: './tsconfig.json',
},
],
},
setupFilesAfterEnv: ['./jest.setup.js'],
moduleNameMapper: {
'#core/(.*)': '<rootDir>/src/core/$1',
'#config': '<rootDir>/config.ts',
'#testing/(.*)': '<rootDir>/src/testing/$1',
},
globals: {
'ts-jest': {
tsconfig: './tsconfig.json',
},
},
};
12 changes: 6 additions & 6 deletions workshops/introduction_to_event_sourcing/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ module.exports = {
testEnvironment: 'node',
roots: ['<rootDir>/src'],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
'^.+\\.(ts|tsx)$': [
'ts-jest',
{
tsconfig: './tsconfig.json',
},
],
},
setupFilesAfterEnv: ['./jest.setup.js'],
moduleNameMapper: {
'#core/(.*)': '<rootDir>/src/core/$1',
'#config': '<rootDir>/config.ts',
'#testing/(.*)': '<rootDir>/src/testing/$1',
},
globals: {
'ts-jest': {
tsconfig: './tsconfig.json',
},
},
};

0 comments on commit 851a0fe

Please sign in to comment.