1
0
mirror of https://github.com/veops/cmdb.git synced 2025-10-31 19:39:24 +08:00
Files
api
docs
logs
tests
ui
public
src
tests
.editorconfig
.env
.env.preview
.prettierrc
.travis.yml
LICENSE
babel.config.js
jest.config.js
jsconfig.json
package.json
vue.config.js
webstorm.config.js
.env
.gitattributes
.gitignore
Dockerfile
LICENSE
Makefile
Pipfile
README.md
autoapp.py
celery_worker.py
docker-compose.yml
setup.cfg
cmdb/ui/jest.config.js
2019-08-28 20:51:51 +08:00

24 lines
512 B
Python

module.exports = {
moduleFileExtensions: [
'js',
'jsx',
'json',
'vue'
],
transform: {
'^.+\\.vue$': 'vue-jest',
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub',
'^.+\\.jsx?$': 'babel-jest'
},
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1'
},
snapshotSerializers: [
'jest-serializer-vue'
],
testMatch: [
'**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'
],
testURL: 'http://localhost/'
}