@nx/jest 17.0.0-beta.2 → 17.0.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/executors.json +0 -7
- package/generators.json +0 -15
- package/package.json +6 -6
- package/plugins/resolver.js +1 -5
- package/src/generators/configuration/configuration.d.ts +0 -1
- package/src/generators/configuration/configuration.js +1 -2
- package/src/generators/init/init.d.ts +0 -1
- package/src/generators/init/init.js +1 -2
- package/src/executors/jest/compat.d.ts +0 -2
- package/src/executors/jest/compat.js +0 -5
package/executors.json
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"builders": {
|
|
3
|
-
"jest": {
|
|
4
|
-
"implementation": "./src/executors/jest/compat",
|
|
5
|
-
"schema": "./src/executors/jest/schema.json",
|
|
6
|
-
"description": "Run Jest unit tests."
|
|
7
|
-
}
|
|
8
|
-
},
|
|
9
2
|
"executors": {
|
|
10
3
|
"jest": {
|
|
11
4
|
"implementation": "./src/executors/jest/jest.impl",
|
package/generators.json
CHANGED
|
@@ -1,21 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "Nx Jest",
|
|
3
3
|
"version": "0.1",
|
|
4
|
-
"schematics": {
|
|
5
|
-
"init": {
|
|
6
|
-
"factory": "./src/generators/init/init#jestInitSchematic",
|
|
7
|
-
"schema": "./src/generators/init/schema.json",
|
|
8
|
-
"description": "Initialize the `@nrwl/jest` plugin.",
|
|
9
|
-
"aliases": ["ng-add"],
|
|
10
|
-
"hidden": true
|
|
11
|
-
},
|
|
12
|
-
"configuration": {
|
|
13
|
-
"factory": "./src/generators/configuration/configuration#compat",
|
|
14
|
-
"schema": "./src/generators/configuration/schema.json",
|
|
15
|
-
"description": "Add Jest configuration to a project.",
|
|
16
|
-
"hidden": true
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
4
|
"generators": {
|
|
20
5
|
"init": {
|
|
21
6
|
"factory": "./src/generators/init/init#jestInitGenerator",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/jest",
|
|
3
|
-
"version": "17.0.0-beta.
|
|
3
|
+
"version": "17.0.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": {
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"url": "https://github.com/nrwl/nx/issues"
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://nx.dev",
|
|
30
|
-
"
|
|
31
|
-
"
|
|
30
|
+
"generators": "./generators.json",
|
|
31
|
+
"executors": "./executors.json",
|
|
32
32
|
"ng-update": {
|
|
33
33
|
"requirements": {},
|
|
34
34
|
"migrations": "./migrations.json"
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"jest-util": "^29.4.1",
|
|
45
45
|
"resolve.exports": "1.1.0",
|
|
46
46
|
"tslib": "^2.3.0",
|
|
47
|
-
"@nx/devkit": "17.0.0-beta.
|
|
48
|
-
"@nx/js": "17.0.0-beta.
|
|
49
|
-
"@nrwl/jest": "17.0.0-beta.
|
|
47
|
+
"@nx/devkit": "17.0.0-beta.4",
|
|
48
|
+
"@nx/js": "17.0.0-beta.4",
|
|
49
|
+
"@nrwl/jest": "17.0.0-beta.4"
|
|
50
50
|
},
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
package/plugins/resolver.js
CHANGED
|
@@ -19,11 +19,7 @@ function getCompilerSetup(rootDir) {
|
|
|
19
19
|
}
|
|
20
20
|
module.exports = function (path, options) {
|
|
21
21
|
const ext = (0, path_1.extname)(path);
|
|
22
|
-
if (ext === '.css' ||
|
|
23
|
-
ext === '.scss' ||
|
|
24
|
-
ext === '.sass' ||
|
|
25
|
-
ext === '.less' ||
|
|
26
|
-
ext === '.styl') {
|
|
22
|
+
if (ext === '.css' || ext === '.scss' || ext === '.sass' || ext === '.less') {
|
|
27
23
|
return require.resolve('identity-obj-proxy');
|
|
28
24
|
}
|
|
29
25
|
try {
|
|
@@ -2,4 +2,3 @@ import { JestProjectSchema } from './schema';
|
|
|
2
2
|
import { Tree, GeneratorCallback } from '@nx/devkit';
|
|
3
3
|
export declare function configurationGenerator(tree: Tree, schema: JestProjectSchema): Promise<GeneratorCallback>;
|
|
4
4
|
export default configurationGenerator;
|
|
5
|
-
export declare const compat: (generatorOptions: JestProjectSchema) => (tree: any, context: any) => Promise<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.configurationGenerator = void 0;
|
|
4
4
|
const init_1 = require("../init/init");
|
|
5
5
|
const check_for_test_target_1 = require("./lib/check-for-test-target");
|
|
6
6
|
const create_files_1 = require("./lib/create-files");
|
|
@@ -53,4 +53,3 @@ async function configurationGenerator(tree, schema) {
|
|
|
53
53
|
}
|
|
54
54
|
exports.configurationGenerator = configurationGenerator;
|
|
55
55
|
exports.default = configurationGenerator;
|
|
56
|
-
exports.compat = (0, devkit_1.convertNxGenerator)(configurationGenerator);
|
|
@@ -2,4 +2,3 @@ import { GeneratorCallback, Tree } from '@nx/devkit';
|
|
|
2
2
|
import { JestInitSchema } from './schema';
|
|
3
3
|
export declare function jestInitGenerator(tree: Tree, schema: JestInitSchema): Promise<GeneratorCallback>;
|
|
4
4
|
export default jestInitGenerator;
|
|
5
|
-
export declare const jestInitSchematic: (generatorOptions: JestInitSchema) => (tree: any, context: any) => Promise<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.jestInitGenerator = void 0;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const js_1 = require("@nx/js");
|
|
6
6
|
const find_root_jest_files_1 = require("../../utils/config/find-root-jest-files");
|
|
@@ -168,4 +168,3 @@ function normalizeOptions(options) {
|
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
170
|
exports.default = jestInitGenerator;
|
|
171
|
-
exports.jestInitSchematic = (0, devkit_1.convertNxGenerator)(jestInitGenerator);
|