forked from linagora/ToM-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: run tests without build packages
- Loading branch information
Jordy Cabannes
committed
Jan 9, 2024
1 parent
1374b9e
commit 63cfc30
Showing
11 changed files
with
52 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import jestConfigBase from '../../jest-base.config.js' | ||
|
||
export default { | ||
...jestConfigBase | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,5 @@ | ||
import jestConfigBase from '../../jest-base.config.js' | ||
|
||
export default { | ||
testTimeout: 10000, | ||
testEnvironment: 'node', | ||
preset: 'ts-jest', | ||
collectCoverage: true, | ||
collectCoverageFrom: ['./src/**/*.ts'], | ||
coverageThreshold: { | ||
global: { | ||
branches: 80, | ||
functions: 50, | ||
lines: 90, | ||
statements: 90 | ||
} | ||
} | ||
...jestConfigBase | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,11 @@ | ||
import jestConfigBase from '../../jest-base.config.js' | ||
|
||
export default { | ||
...jestConfigBase, | ||
testTimeout: 360000, | ||
testEnvironment: 'node', | ||
preset: 'ts-jest', | ||
collectCoverage: true, | ||
collectCoverageFrom: ['./src/**/{!(pg),}.ts'], | ||
coverageThreshold: { | ||
global: { | ||
branches: 80, | ||
functions: 50, | ||
lines: 90, | ||
statements: 90 | ||
} | ||
}, | ||
moduleNameMapper: { | ||
"@twake/(.*)$": "<rootDir>/../$1/src", | ||
...jestConfigBase.moduleNameMapper, | ||
"node-fetch": "<rootDir>/../../node_modules/node-fetch-jest", | ||
'matrix-resolve': '<rootDir>/../matrix-resolve/src' | ||
}, | ||
clearMocks: true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,5 @@ | ||
import jestConfigBase from '../../jest-base.config.js' | ||
|
||
export default { | ||
testTimeout: 10000, | ||
testEnvironment: 'node', | ||
preset: 'ts-jest', | ||
collectCoverage: true, | ||
collectCoverageFrom: ['./src/**/{!(pg|redis),}.ts'], | ||
coverageThreshold: { | ||
global: { | ||
branches: 80, | ||
functions: 50, | ||
lines: 90, | ||
statements: 90 | ||
} | ||
}, | ||
moduleNameMapper: { | ||
"@twake/(.*)$": "<rootDir>/../$1/src", | ||
}, | ||
...jestConfigBase | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,7 @@ | ||
import jestConfigBase from '../../jest-base.config.js' | ||
|
||
export default { | ||
testTimeout: 10000, | ||
testEnvironment: 'node', | ||
preset: 'ts-jest', | ||
collectCoverage: true, | ||
collectCoverageFrom: ['./src/**/*.ts'], | ||
coverageThreshold: { | ||
global: { | ||
branches: 80, | ||
functions: 50, | ||
lines: 90, | ||
statements: 90 | ||
} | ||
}, | ||
moduleNameMapper: { | ||
"@twake/(.*)$": "<rootDir>/../$1/src", | ||
}, | ||
...jestConfigBase, | ||
clearMocks: true, | ||
restoreMocks: true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,6 @@ | ||
import jestConfigBase from '../../jest-base.config.js' | ||
|
||
export default { | ||
testTimeout: 30000, | ||
testEnvironment: 'node', | ||
preset: 'ts-jest', | ||
collectCoverage: true, | ||
collectCoverageFrom: ['./src/**/{!(pg|redis),}.ts'], | ||
coverageThreshold: { | ||
global: { | ||
branches: 80, | ||
functions: 50, | ||
lines: 90, | ||
statements: 90 | ||
} | ||
}, | ||
moduleNameMapper: { | ||
'@twake/(.*)$': '<rootDir>/../$1/src', | ||
'matrix-resolve': '<rootDir>/../matrix-resolve/src', | ||
} | ||
...jestConfigBase, | ||
testTimeout: 30000 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,8 @@ | ||
import jestConfigBase from '../../jest-base.config.js' | ||
|
||
export default { | ||
testTimeout: 120000, | ||
testEnvironment: 'node', | ||
preset: 'ts-jest', | ||
collectCoverage: true, | ||
collectCoverageFrom: ['./src/**/*.ts'], | ||
coverageThreshold: { | ||
global: { | ||
branches: 80, | ||
functions: 50, | ||
lines: 90, | ||
statements: 90 | ||
} | ||
}, | ||
...jestConfigBase, | ||
moduleNameMapper: { | ||
"node-fetch": "<rootDir>/../../node_modules/node-fetch-jest" | ||
}, | ||
clearMocks: true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,5 @@ | ||
import jestConfigBase from '../../jest-base.config.js' | ||
|
||
export default { | ||
testTimeout: 10000, | ||
testEnvironment: 'node', | ||
preset: 'ts-jest', | ||
collectCoverage: true, | ||
collectCoverageFrom: ['./src/**/*.ts'], | ||
coverageThreshold: { | ||
global: { | ||
branches: 80, | ||
functions: 50, | ||
lines: 90, | ||
statements: 90 | ||
} | ||
}, | ||
...jestConfigBase | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,12 @@ | ||
import jestConfigBase from '../../jest-base.config.js' | ||
|
||
export default { | ||
...jestConfigBase, | ||
testTimeout: 120000, | ||
testEnvironment: 'node', | ||
preset: 'ts-jest', | ||
collectCoverage: true, | ||
collectCoverageFrom: ['./src/**/{!(pg),}.ts'], | ||
coverageThreshold: { | ||
global: { | ||
branches: 80, | ||
functions: 50, | ||
lines: 90, | ||
statements: 90 | ||
} | ||
}, | ||
setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'], | ||
moduleNameMapper: { | ||
"@twake/(.*)$": "<rootDir>/../$1/src", | ||
...jestConfigBase.moduleNameMapper, | ||
"node-fetch": "<rootDir>/../../node_modules/node-fetch-jest", | ||
'matrix-resolve': '<rootDir>/../matrix-resolve/src' | ||
}, | ||
clearMocks: true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters