Skip to content

Commit ba1b876

Browse files
committed
fix: updated jest to v28
1 parent 702b108 commit ba1b876

File tree

3 files changed

+1061
-627
lines changed

3 files changed

+1061
-627
lines changed

jest.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ module.exports = {
99
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(js|ts)$',
1010
moduleFileExtensions: ['vue', 'js', 'ts'],
1111
moduleNameMapper: {
12+
// Fix in order for vue-test-utils to work with Jest 28
13+
// https://github.com/vuejs/vue-test-utils/issues/1975
14+
'^@vue/test-utils$': require.resolve('@vue/test-utils'),
1215
'^@/(.*)$': '<rootDir>/src/$1',
1316
'^@playground/(.*)$': '<rootDir>/playground/$1',
1417
'^@root/(.*)$': '<rootDir>/$1'

0 commit comments

Comments
 (0)