Skip to content

Commit

Permalink
Migrate to Jest
Browse files Browse the repository at this point in the history
  • Loading branch information
panzerdp committed Dec 26, 2019
1 parent 2702af3 commit 00c3c0c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
7 changes: 6 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,10 @@
"root": ["./src"]
}
]
]
],
"env": {
"test": {
"plugins": [["@babel/plugin-transform-modules-commonjs"]]
}
}
}
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
verbose: true,
modulePaths: ['<rootDir>/src/'],
collectCoverageFrom: ['src/**/*.js'],
testMatch: ['<rootDir>/test/**/*.js'],
testMatch: ['<rootDir>/test/*/*.js'],
testURL: 'http://localhost',
testPathIgnorePatterns: ['node_modules', '.cache'],
transformIgnorePatterns: [
Expand Down
12 changes: 3 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"bugs": {
"url": "https://github.com/panzerdp/voca/issues",
"email": "dmitri@rainsoft.io"
"email": "dmitripavlutin@gmail.com"
},
"main": "index.js",
"jsnext:main": "index.es2015.js",
Expand All @@ -39,8 +39,8 @@
"build-dist": "rollup -c config/rollup/dist/umd-min.js && rollup -c config/rollup/dist/umd.js",
"build-npm-package": "rollup -c config/rollup/module/cjs-all.js && rollup -c config/rollup/module/es.js && rollup -c config/rollup/module/umd.js",
"prepare-npm-package": "rm -rf dist_mod && mkdir dist_mod && cp package.json README.md LICENSE.md ./dist_mod",
"test": "mocha test/index.js --reporter dot",
"coverage": "istanbul cover _mocha -- test/index.js --reporter spec",
"test": "jest",
"coverage": "jest --coverage",
"report-coverage": "cat ./coverage/lcov.info | codecov",
"verify": "npm run eslint && npm run coverage",
"jsdoc": "jsdoc --configure .jsdoc.json",
Expand All @@ -67,15 +67,9 @@
"codecov.io": "0.1.6",
"eslint": "6.8.0",
"glob": "7.1.6",
"grunt": "1.0.4",
"grunt-contrib-connect": "2.1.0",
"grunt-saucelabs": "9.0.1",
"husky": "3.1.0",
"istanbul": "1.1.0-alpha.1",
"jest": "24.9.0",
"jsdoc": "3.6.3",
"mkdirp": "0.5.1",
"mocha": "6.2.2",
"rollup": "1.27.14",
"rollup-plugin-babel": "4.3.3",
"rollup-plugin-uglify": "6.0.4",
Expand Down

0 comments on commit 00c3c0c

Please sign in to comment.