@nx/jest 20.5.0-beta.3 → 20.5.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/jest",
3
- "version": "20.5.0-beta.3",
3
+ "version": "20.5.0-beta.4",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for Jest contains executors and generators allowing your workspace to use the powerful Jest testing capabilities.",
6
6
  "repository": {
@@ -37,8 +37,8 @@
37
37
  "dependencies": {
38
38
  "@jest/reporters": "^29.4.1",
39
39
  "@jest/test-result": "^29.4.1",
40
- "@nx/devkit": "20.5.0-beta.3",
41
- "@nx/js": "20.5.0-beta.3",
40
+ "@nx/devkit": "20.5.0-beta.4",
41
+ "@nx/js": "20.5.0-beta.4",
42
42
  "@phenomnomnominal/tsquery": "~5.0.1",
43
43
  "identity-obj-proxy": "3.0.0",
44
44
  "jest-config": "^29.4.1",
@@ -99,9 +99,10 @@ function generateGlobalConfig(tree, isJS) {
99
99
  module.exports = async () => ({
100
100
  projects: await getJestProjectsAsync()
101
101
  });`
102
- : `import { getJestProjectsAsync } from '@nx/jest';
102
+ : `import type { Config } from 'jest';
103
+ import { getJestProjectsAsync } from '@nx/jest';
103
104
 
104
- export default async () => ({
105
+ export default async (): Promise<Config> => ({
105
106
  projects: await getJestProjectsAsync()
106
107
  });`;
107
108
  tree.write(`jest.config.${isJS ? 'js' : 'ts'}`, contents);