You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/unit-jest/README.md
+4-6
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,13 @@
2
2
3
3
> **[Jest isn't compatible with Vite](https://github.com/quasarframework/quasar-testing/issues/244#issuecomment-1293671738)**, if you use `@quasar/app-vite` and you need unit testing, you should use [Vitest](../unit-vitest/README.md) instead.
4
4
5
-
> This package is in **beta** phase. The public API shouldn't change before the stable release.
6
-
7
5
> **We're looking for a maintainer!**
8
6
> Currently no one in the Quasar team is using Jest in his day-to-day life, thus we miss many use cases and the DX is suboptimal.
9
7
> We're looking for someone who is using it and would like to help us maintain this package.
10
8
> **If you're interested, please reach out on [Discord](https://chat.quasar.dev/)**
11
9
12
10
```shell
13
-
$ quasar ext add @quasar/testing-unit-jest@beta
11
+
$ quasar ext add @quasar/testing-unit-jest
14
12
```
15
13
16
14
Add into your `.eslintrc.js` the following code:
@@ -108,9 +106,9 @@ You can choose to install [Majestic](https://github.com/Raathigesh/majestic), wh
108
106
> This package had a long alpha phase due to narrow bandwidth on Quasar team to care about it as much as it was needed.
109
107
> When the first alpha release took place the active Jest version was v26, while at the time of the beta release it bumped to v29.
110
108
> We decided to update directly to Jest v29 before releasing the beta of this package.
111
-
> The suggested path to migrate projects using v3 alpha release of this package is to re-read and apply the migration guide which has been updated to account for new changes.
109
+
> The suggested path to migrate projects using v3 alpha or beta releases of this package is to re-read and apply the migration guide which has been updated to account for new changes.
112
110
113
-
Alternatively to the following guide, a faster way for advanced developers would be to run `yarn quasar ext add @quasar/testing-unit-jest@beta` and `yarn add -D jest @vue/test-utils eslint-plugin-jest@latest`, then let the package scaffold new files overriding the existing ones and manually merge your changes into the generated files. Ensure to have version control in place to be able to revert if needed. Even in this case, we suggest to take a look to the following migration guide and use it as a checklist, as some files must be renamed/removed.
111
+
Alternatively to the following guide, a faster way for advanced developers would be to run `yarn quasar ext add @quasar/testing-unit-jest` and `yarn add -D jest @vue/test-utils eslint-plugin-jest@latest`, then let the package scaffold new files overriding the existing ones and manually merge your changes into the generated files. Ensure to have version control in place to be able to revert if needed. Even in this case, we suggest to take a look to the following migration guide and use it as a checklist, as some files must be renamed/removed.
114
112
115
113
**Please note that Jest v29 requires Node v14, thus this package can only be used with Node 14 or higher.**
116
114
@@ -119,7 +117,7 @@ Alternatively to the following guide, a faster way for advanced developers would
119
117
We adapted to the ecosystem shift towards externalizing dependencies, we now manage supported versions of third parties packages via peerDependencies.
120
118
Run `yarn add -D jest @vue/test-utils` to install previously bundled dependencies.
121
119
122
-
Run `yarn add -D @quasar/quasar-app-extension-testing-unit-jest@beta eslint-plugin-jest@latest` to upgrade dependencies which were already externalized.
120
+
Run `yarn add -D @quasar/quasar-app-extension-testing-unit-jest eslint-plugin-jest@latest` to upgrade dependencies which were already externalized.
123
121
124
122
Here are some resources which you should read, adapting your tests accordingly:
0 commit comments