-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ONL-7918] fix unit test when using imported types for props
- Loading branch information
Showing
3 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// With Vue 3.3 we get the possibility to use imported types to declare props. However, | ||
// this new method cause unit tests to fail due to the @vue/vue3-jest package didn't | ||
// support it yet. This is a hacky fix that solves the issue. | ||
// More info here: https://github.com/vuejs/core/issues/8301 | ||
|
||
/* eslint-disable import/no-extraneous-dependencies */ | ||
require('@vue/compiler-sfc').registerTS(require('typescript')); | ||
module.exports = require('@vue/vue3-jest'); |