Skip to content

Commit

Permalink
fix: updated jest to v28
Browse files Browse the repository at this point in the history
  • Loading branch information
kouts committed Jul 3, 2022
1 parent 702b108 commit ba1b876
Show file tree
Hide file tree
Showing 3 changed files with 1,061 additions and 627 deletions.
3 changes: 3 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ module.exports = {
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(js|ts)$',
moduleFileExtensions: ['vue', 'js', 'ts'],
moduleNameMapper: {
// Fix in order for vue-test-utils to work with Jest 28
// https://github.com/vuejs/vue-test-utils/issues/1975
'^@vue/test-utils$': require.resolve('@vue/test-utils'),
'^@/(.*)$': '<rootDir>/src/$1',
'^@playground/(.*)$': '<rootDir>/playground/$1',
'^@root/(.*)$': '<rootDir>/$1'
Expand Down
Loading

0 comments on commit ba1b876

Please sign in to comment.