@nuxt/test-utils 3.6.1 → 3.6.3

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/README.md CHANGED
@@ -55,7 +55,7 @@ Nuxt's goal is to make web development intuitive and performant, with a great de
55
55
  <td>
56
56
  <h3>Examples</h3>
57
57
  <p>
58
- Explore different ways of using Nuxt features and get inspired with <a href="https://nuxt.com/docs/examples/essentials/hello-world">our list of examples</a>.
58
+ Explore different ways of using Nuxt features and get inspired with <a href="https://nuxt.com/docs/examples/hello-world">our list of examples</a>.
59
59
  </p>
60
60
  </td>
61
61
  </tr>
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- import * as playwright from 'playwright';
2
- import { Browser, BrowserContextOptions, LaunchOptions } from 'playwright';
1
+ import * as playwright_core from 'playwright-core';
2
+ import { Browser, BrowserContextOptions, LaunchOptions } from 'playwright-core';
3
3
  import { NuxtConfig, Nuxt } from '@nuxt/schema';
4
4
  import { ExecaChildProcess } from 'execa';
5
5
  import { FetchOptions } from 'ofetch';
6
6
 
7
7
  declare function createBrowser(): Promise<void>;
8
8
  declare function getBrowser(): Promise<Browser>;
9
- declare function createPage(path?: string, options?: BrowserContextOptions): Promise<playwright.Page>;
9
+ declare function createPage(path?: string, options?: BrowserContextOptions): Promise<playwright_core.Page>;
10
10
 
11
11
  type TestRunner = 'vitest' | 'jest';
12
12
  interface TestOptions {
package/dist/index.mjs CHANGED
@@ -15,11 +15,11 @@ async function createBrowser() {
15
15
  const ctx = useTestContext();
16
16
  let playwright;
17
17
  try {
18
- playwright = await import(String("playwright"));
18
+ playwright = await import(String("playwright-core"));
19
19
  } catch {
20
20
  throw new Error(`
21
- The dependency 'playwright' not found.
22
- Please run 'yarn add --dev playwright' or 'npm install --save-dev playwright'
21
+ The dependency 'playwright-core' not found.
22
+ Please run 'yarn add --dev playwright-core' or 'npm install --save-dev playwright-core'
23
23
  `);
24
24
  }
25
25
  const { type, launch } = ctx.options.browserOptions;
@@ -181,7 +181,6 @@ async function setup(options = {}) {
181
181
  }
182
182
 
183
183
  const distDir = dirname(fileURLToPath(import.meta.url));
184
- resolve$1(distDir, "..");
185
184
 
186
185
  const RunTestDefaults = {
187
186
  runner: "vitest",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/test-utils",
3
- "version": "3.6.1",
3
+ "version": "3.6.3",
4
4
  "repository": "nuxt/nuxt",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -19,33 +19,33 @@
19
19
  "dist"
20
20
  ],
21
21
  "dependencies": {
22
- "consola": "^3.1.0",
22
+ "consola": "^3.2.3",
23
23
  "defu": "^6.1.2",
24
24
  "execa": "^7.1.1",
25
25
  "get-port-please": "^3.0.1",
26
26
  "ofetch": "^1.1.1",
27
27
  "pathe": "^1.1.1",
28
28
  "ufo": "^1.1.2",
29
- "@nuxt/schema": "3.6.1",
30
- "@nuxt/kit": "3.6.1"
29
+ "@nuxt/kit": "3.6.3",
30
+ "@nuxt/schema": "3.6.3"
31
31
  },
32
32
  "devDependencies": {
33
- "@jest/globals": "29.5.0",
34
- "playwright": "1.35.1",
33
+ "@jest/globals": "29.6.0",
34
+ "playwright-core": "1.35.1",
35
35
  "unbuild": "latest",
36
- "vitest": "0.32.2"
36
+ "vitest": "0.33.0"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@jest/globals": "^29.5.0",
40
- "playwright": "^1.34.3",
41
- "vitest": "^0.30.0 || ^0.31.0 || ^0.32.0",
40
+ "playwright-core": "^1.34.3",
41
+ "vitest": "^0.30.0 || ^0.31.0 || ^0.32.0 || ^0.33.0",
42
42
  "vue": "^3.3.4"
43
43
  },
44
44
  "peerDependenciesMeta": {
45
45
  "@jest/globals": {
46
46
  "optional": true
47
47
  },
48
- "playwright": {
48
+ "playwright-core": {
49
49
  "optional": true
50
50
  },
51
51
  "vitest": {