@nuxt/test-utils 3.1.0 → 3.1.2

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/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- MIT License
1
+ The MIT License (MIT)
2
2
 
3
3
  Copyright (c) 2016-present - Nuxt Team
4
4
 
package/README.md CHANGED
@@ -114,7 +114,7 @@ Follow the docs to [Set Up Your Local Development Environment](https://nuxt.com/
114
114
 
115
115
  ## Nuxt 2
116
116
 
117
- You can find the code for Nuxt 2 on the [`2.x-dev` branch](https://github.com/nuxt/nuxt/tree/2.x-dev) and the documentation at [nuxtjs.org](https://nuxtjs.org).
117
+ You can find the code for Nuxt 2 on the [`2.x` branch](https://github.com/nuxt/nuxt/tree/2.x) and the documentation at [nuxtjs.org](https://nuxtjs.org).
118
118
 
119
119
  ## Follow us
120
120
 
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { resolve } from 'node:path';
2
- import defu from 'defu';
2
+ import { defu } from 'defu';
3
3
  import { execa } from 'execa';
4
4
  import { getRandomPort, waitForPort } from 'get-port-please';
5
5
  import { fetch as fetch$1, $fetch as $fetch$1 } from 'ofetch';
@@ -78,13 +78,14 @@ async function startServer() {
78
78
  for (let i = 0; i < 50; i++) {
79
79
  await new Promise((resolve2) => setTimeout(resolve2, 100));
80
80
  try {
81
- const res = await $fetch("/");
81
+ const res = await $fetch(ctx.nuxt.options.app.baseURL);
82
82
  if (!res.includes("__NUXT_LOADING__")) {
83
83
  return;
84
84
  }
85
85
  } catch {
86
86
  }
87
87
  }
88
+ ctx.serverProcess.kill();
88
89
  throw new Error("Timeout waiting for dev server!");
89
90
  } else {
90
91
  ctx.serverProcess = execa("node", [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/test-utils",
3
- "version": "3.1.0",
3
+ "version": "3.1.2",
4
4
  "repository": "nuxt/nuxt",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -10,23 +10,23 @@
10
10
  "dist"
11
11
  ],
12
12
  "dependencies": {
13
- "@nuxt/kit": "3.1.0",
14
- "@nuxt/schema": "3.1.0",
13
+ "@nuxt/kit": "3.1.2",
14
+ "@nuxt/schema": "3.1.2",
15
15
  "consola": "^2.15.3",
16
- "defu": "^6.1.1",
16
+ "defu": "^6.1.2",
17
17
  "execa": "^6.1.0",
18
18
  "get-port-please": "^3.0.1",
19
19
  "jiti": "^1.16.2",
20
20
  "ofetch": "^1.0.0",
21
- "pathe": "^1.0.0"
21
+ "pathe": "^1.1.0"
22
22
  },
23
23
  "devDependencies": {
24
- "playwright": "^1.29.2",
24
+ "playwright": "^1.30.0",
25
25
  "unbuild": "latest",
26
- "vitest": "^0.27.2"
26
+ "vitest": "^0.28.3"
27
27
  },
28
28
  "peerDependencies": {
29
- "vue": "^3.2.45"
29
+ "vue": "^3.2.47"
30
30
  },
31
31
  "engines": {
32
32
  "node": "^14.16.0 || ^16.10.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"