Skip to content

Commit abdf20b

Browse files
chore(deps): update devdependency @nuxt/test-utils to v4 (#285)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Damian Glowala <damian.glowala.rebkow@gmail.com>
1 parent 981009e commit abdf20b

File tree

4 files changed

+280
-181
lines changed

4 files changed

+280
-181
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,16 @@
5252
"@nuxt/eslint-config": "^1.11.0",
5353
"@nuxt/kit": "^4.3.1",
5454
"@nuxt/module-builder": "^1.0.2",
55-
"@nuxt/test-utils": "^3.21.0",
55+
"@nuxt/test-utils": "^4.0.0",
56+
"@vue/test-utils": "^2.4.6",
5657
"changelogen": "^0.6.2",
5758
"crawler-user-agents": "^1.22.0",
5859
"eslint": "^10.0.2",
5960
"happy-dom": "^20.0.11",
6061
"nuxt": "^4.3.1",
6162
"playwright": "^1.57.0",
6263
"typescript": "^6.0.2",
63-
"vitest": "^3.2.4"
64+
"vitest": "^4.0.2"
6465
},
6566
"resolutions": {
6667
"@nuxtjs/device": "workspace:*"

patches/@nuxt__test-utils.patch

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
diff --git a/dist/shared/test-utils.E_cAGA8l.mjs b/dist/shared/test-utils.E_cAGA8l.mjs
2+
index 2d790885c8d43efb490a41145f3694295e6e9363..b70c51a4ec767d3e0b93a9eb85a86e28d9e293a9 100644
3+
--- a/dist/shared/test-utils.E_cAGA8l.mjs
4+
+++ b/dist/shared/test-utils.E_cAGA8l.mjs
5+
@@ -115,7 +115,8 @@ async function buildFixture() {
6+
}
7+
8+
async function setupBun(hooks) {
9+
- const bunTest = await import('bun:test');
10+
+ const specifier = 'bun:test';
11+
+ const bunTest = await import(specifier);
12+
hooks.ctx.mockFn = bunTest.mock;
13+
bunTest.beforeAll(hooks.beforeAll, hooks.ctx.options.setupTimeout);
14+
bunTest.beforeEach(hooks.beforeEach);

0 commit comments

Comments
 (0)