@nx/plugin 23.2.0-beta.5 → 23.2.0-beta.6

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.
@@ -16,6 +16,8 @@ describe('<%= cliName %>', () => {
16
16
  });
17
17
 
18
18
 
19
+ // This test shells out synchronously, so its budget has to cover a cold
20
+ // package manager cache. Otherwise work that succeeded still fails on return.
19
21
  it('should be installed', () => {
20
22
  projectDirectory = createTestProject();
21
23
 
@@ -24,7 +26,7 @@ describe('<%= cliName %>', () => {
24
26
  cwd: projectDirectory,
25
27
  stdio: 'inherit',
26
28
  });
27
- });
29
+ }, 180_000);
28
30
  });
29
31
 
30
32
  /**
@@ -202,17 +202,16 @@ export { default as teardown } from './stop-local-registry';
202
202
  project.targets ??= {};
203
203
  if (project.targets.e2e) {
204
204
  const e2eTarget = project.targets.e2e;
205
+ // The suites share a single tmp/test-project directory, so they have to run
206
+ // one at a time. Vitest 4 removed `poolOptions`, and nested options do not
207
+ // survive the executor's argv round-trip anyway, so use the scalar options.
205
208
  project.targets.e2e = {
206
209
  ...e2eTarget,
207
210
  dependsOn: [`^build`],
208
211
  options: {
209
212
  ...e2eTarget.options,
210
- pool: 'forks',
211
- poolOptions: {
212
- forks: {
213
- singleFork: true,
214
- },
215
- },
213
+ maxWorkers: 1,
214
+ isolate: false,
216
215
  },
217
216
  };
218
217
  (0, devkit_1.updateProjectConfiguration)(host, options.projectName, project);
@@ -5,6 +5,9 @@ import { mkdirSync, rmSync } from 'fs';
5
5
  describe('<%= pluginName %>', () => {
6
6
  let projectDirectory: string;
7
7
 
8
+ // This hook shells out synchronously twice, so its budget has to cover both
9
+ // installs on a cold package manager cache. Otherwise work that succeeded
10
+ // still fails on return.
8
11
  beforeAll(() => {
9
12
  projectDirectory = createTestProject();
10
13
 
@@ -15,7 +18,7 @@ describe('<%= pluginName %>', () => {
15
18
  stdio: 'inherit',
16
19
  env: process.env,
17
20
  });
18
- }, 30_000);
21
+ }, 300_000);
19
22
 
20
23
  afterAll(() => {
21
24
  if (projectDirectory) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/plugin",
3
- "version": "23.2.0-beta.5",
3
+ "version": "23.2.0-beta.6",
4
4
  "private": false,
5
5
  "description": "This plugin is used to create Nx plugins! It contains generators for generating common plugin features like generators, executors, migrations and more.",
6
6
  "repository": {
@@ -36,16 +36,16 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "tslib": "^2.3.0",
39
- "@nx/devkit": "23.2.0-beta.5",
40
- "@nx/jest": "23.2.0-beta.5",
41
- "@nx/js": "23.2.0-beta.5",
42
- "@nx/eslint": "23.2.0-beta.5"
39
+ "@nx/devkit": "23.2.0-beta.6",
40
+ "@nx/jest": "23.2.0-beta.6",
41
+ "@nx/eslint": "23.2.0-beta.6",
42
+ "@nx/js": "23.2.0-beta.6"
43
43
  },
44
44
  "devDependencies": {
45
- "nx": "23.2.0-beta.5"
45
+ "nx": "23.2.0-beta.6"
46
46
  },
47
47
  "peerDependencies": {
48
- "@nx/vitest": "23.2.0-beta.5"
48
+ "@nx/vitest": "23.2.0-beta.6"
49
49
  },
50
50
  "peerDependenciesMeta": {
51
51
  "@nx/vitest": {