Skip to content

Commit

Permalink
chore(jest): Upgrade jest
Browse files Browse the repository at this point in the history
* chore(jest): Upgrade jest

* Remove node 10 from Github actions matrix
  • Loading branch information
mst101 authored Jul 19, 2022
1 parent f933715 commit 626c95f
Show file tree
Hide file tree
Showing 5 changed files with 1,350 additions and 1,682 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
node-version: [12.x, 14.x]

steps:
- name: Check out Git repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
node-version: [12.x, 14.x]

steps:
- name: Check out Git repository
Expand Down
7 changes: 5 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@ module.exports = {
},
transform: {
'^.+.js$': 'babel-jest',
'^.+.vue': 'vue-jest',
'^.+.vue': '@vue/vue2-jest',
},
setupFiles: ['<rootDir>/test/unit/setup.js'],
coverageDirectory: '<rootDir>/test/unit/coverage',
collectCoverageFrom: [
'./src/**/*.{js,vue}',
'!./src/locale/translations/**/*.js',
],
testEnvironment: 'jsdom',
testEnvironmentOptions: {
url: 'http://localhost',
},
verbose: false,
testURL: 'http://localhost',
}
Loading

0 comments on commit 626c95f

Please sign in to comment.