seafile-js/jest.config.js
2023-12-26 14:51:04 +08:00

17 lines
370 B
JavaScript

const path = require('path');
module.exports = {
rootDir: path.resolve(__dirname, './'),
roots: ["<rootDir>/test/"],
testMatch: [ "<rootDir>/test/test.js"],
transform: {
"^.+\\.js$": "babel-jest"
},
transformIgnorePatterns: [
'[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs)$',
],
moduleNameMapper: {
'^axios$': require.resolve('axios'),
},
}