Skip to content

Commit

Permalink
Split unit and integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rprieto committed Jul 10, 2019
1 parent 1df6d8c commit 244e992
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 1 deletion.
15 changes: 14 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
module.exports = {
testEnvironment: 'node'
testEnvironment: 'node',
rootDir: '.',
collectCoverage: true,
collectCoverageFrom: ['lib/**/*.js'],
projects: [
{
displayName: 'unit',
testMatch: ['<rootDir>/test/unit/**/*.test.js']
},
{
displayName: 'integration',
testMatch: ['<rootDir>/test/integration/**/*.test.js']
}
]
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"description": "Convert / resize / transcode photos & videos to be web-friendly",
"main": "lib/index.js",
"scripts": {
"test:u": "jest test/unit",
"test:i": "jest test/integration",
"test": "jest",
"pretest": "standard && require-lint"
},
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 244e992

Please sign in to comment.