afc163
9 years ago
3 changed files with 33 additions and 1 deletions
@ -0,0 +1,9 @@ |
|||
// jest-script-preprocessor.js
|
|||
var babelJest = require("babel-jest"); |
|||
|
|||
module.exports = { |
|||
process: function(src, filename) { |
|||
return babelJest.process(src, filename) |
|||
.replace(/^require.*\.less.*;$/gm, ''); |
|||
} |
|||
}; |
@ -0,0 +1,8 @@ |
|||
jest.dontMock('../index'); |
|||
var antd = require('../index'); |
|||
|
|||
describe('antd', function() { |
|||
it('antd should be existd', function() { |
|||
expect(antd).toBeTruthy(); |
|||
}); |
|||
}); |
Loading…
Reference in new issue