unpkg/jest.config.js

12 lines
442 B
JavaScript
Raw Normal View History

module.exports = {
moduleNameMapper: {
2019-07-10 20:24:27 +00:00
'\\.css$': '<rootDir>/modules/__mocks__/styleMock.js',
2019-07-10 00:21:25 +00:00
'\\.png$': '<rootDir>/modules/__mocks__/imageMock.js',
2019-07-10 20:24:27 +00:00
'entry-manifest': '<rootDir>/modules/__mocks__/entryManifest.js',
'getStats\\.js': '<rootDir>/modules/__mocks__/getStatsMock.js',
'utils\\/npm\\.js': '<rootDir>/modules/__mocks__/npmMock.js'
},
2019-07-10 00:21:25 +00:00
testMatch: ['**/__tests__/*-test.js'],
testURL: 'http://localhost/'
};