Skip to content

Commit

Permalink
fix: empty test warning
Browse files Browse the repository at this point in the history
  • Loading branch information
asvae committed Aug 6, 2019
1 parent 3ee71f3 commit df08cfd
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,15 @@ workflows:
jobs:
# - test
- deploy-staging:
requires:
- test
context: vuestic-staging
filters:
branches:
only: develop
- deploy-production:
requires:
- test
context: vuestic-production
filters:
branches:
Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = {
'jest-serializer-vue',
],
testMatch: [
'**/src/**/*.spec.(js|jsx|ts|tsx)',
'**/unit/**/*.spec.(js|jsx|ts|tsx)',
],
testURL: 'http://localhost/',
}
5 changes: 5 additions & 0 deletions unit/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
env: {
jest: true,
},
}
6 changes: 6 additions & 0 deletions unit/example.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
describe('App', () => {
// Mock test is required so that jest does not complain we have no tests on job.
it('runs a mock test', () => {
expect(true).toBe(true)
})
})

0 comments on commit df08cfd

Please sign in to comment.