openapi-nodegen-mem-mongo-loader
Version:
Helper class to load mongo db memory and then mongoose with 2 functions setup and stop - for unit testing purposes
28 lines (26 loc) • 484 B
JavaScript
module.exports = {
moduleFileExtensions: [
'js',
'jsx',
'json',
'ts',
'tsx'
],
collectCoverage: true,
collectCoverageFrom: ['src/**/*.{js,ts}'],
coverageDirectory: 'coverage',
testEnvironment: 'node',
transform: {
'^.+\\.tsx?$': 'ts-jest'
},
transformIgnorePatterns: [
'/node_modules/'
],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1'
},
testMatch: [
'**/__tests__/*.spec.ts',
],
testURL: 'http://localhost/',
}