test: add test for load config

This commit is contained in:
endiliey 2018-08-10 14:52:02 +08:00
parent 687bf09c96
commit bf94bf96f8
6 changed files with 71 additions and 8 deletions

12
test/jest.config.js Normal file
View file

@ -0,0 +1,12 @@
const path = require('path');
module.exports = {
rootDir: path.resolve(__dirname, '..'),
verbose: true,
testURL: 'http://localhost/',
testEnvironment: 'node',
moduleNameMapper: {
'^@lib/(.*)$': '<rootDir>/lib/$1'
},
testPathIgnorePatterns: ['/node_modules/', '__fixtures__']
};