@nuxt/test-utils 3.4.0 → 3.4.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.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -1
  2. package/package.json +19 -5
package/dist/index.mjs CHANGED
@@ -107,7 +107,7 @@ async function buildFixture() {
107
107
  }
108
108
 
109
109
  async function setupJest(hooks) {
110
- const jest = await import('jest');
110
+ const { jest, test, beforeEach, afterAll, afterEach } = await import('@jest/globals');
111
111
  hooks.ctx.mockFn = jest.fn;
112
112
  test("setup", hooks.setup, hooks.ctx.options.setupTimeout);
113
113
  beforeEach(hooks.beforeEach);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/test-utils",
3
- "version": "3.4.0",
3
+ "version": "3.4.2",
4
4
  "repository": "nuxt/nuxt",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -19,25 +19,39 @@
19
19
  "dist"
20
20
  ],
21
21
  "dependencies": {
22
- "consola": "^3.0.1",
22
+ "consola": "^3.1.0",
23
23
  "defu": "^6.1.2",
24
24
  "execa": "^7.1.1",
25
25
  "get-port-please": "^3.0.1",
26
- "jiti": "^1.18.2",
27
26
  "ofetch": "^1.0.1",
28
27
  "pathe": "^1.1.0",
29
28
  "ufo": "^1.1.1",
30
- "@nuxt/schema": "3.4.0",
31
- "@nuxt/kit": "3.4.0"
29
+ "@nuxt/schema": "3.4.2",
30
+ "@nuxt/kit": "3.4.2"
32
31
  },
33
32
  "devDependencies": {
33
+ "@jest/globals": "^29.5.0",
34
34
  "playwright": "^1.32.3",
35
35
  "unbuild": "latest",
36
36
  "vitest": "^0.30.1"
37
37
  },
38
38
  "peerDependencies": {
39
+ "@jest/globals": "^29.5.0",
40
+ "playwright": "^1.32.3",
41
+ "vitest": "^0.30.1",
39
42
  "vue": "^3.2.47"
40
43
  },
44
+ "peerDependenciesMeta": {
45
+ "@jest/globals": {
46
+ "optional": true
47
+ },
48
+ "playwright": {
49
+ "optional": true
50
+ },
51
+ "vitest": {
52
+ "optional": true
53
+ }
54
+ },
41
55
  "engines": {
42
56
  "node": "^14.18.0 || ^16.10.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
43
57
  },