Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

add serverside testing #139

Merged
merged 15 commits into from
Dec 11, 2019
20 changes: 20 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
roots: ['<rootDir>'],
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
moduleDirectories: ['node_modules', 'server'],
moduleNameMapper: {
'^server/(.*)': '<rootDir>/server/$1',
},
globals: {
'ts-jest': {
diagnostics: false,
},
},
watchPathIgnorePatterns: ['/node_modules'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
testMatch: ['/**/*.test.(ts|js|tsx|jsx)'],
};
195 changes: 174 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading