Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,16 @@
"@nuxt/eslint-config": "^1.11.0",
"@nuxt/kit": "^4.3.1",
"@nuxt/module-builder": "^1.0.2",
"@nuxt/test-utils": "^3.21.0",
"@nuxt/test-utils": "^4.0.0",
"@vue/test-utils": "^2.4.6",
"changelogen": "^0.6.2",
"crawler-user-agents": "^1.22.0",
"eslint": "^10.0.2",
"happy-dom": "^20.0.11",
"nuxt": "^4.3.1",
"playwright": "^1.57.0",
"typescript": "^6.0.2",
"vitest": "^3.2.4"
"vitest": "^4.0.2"
},
"resolutions": {
"@nuxtjs/device": "workspace:*"
Expand Down
14 changes: 14 additions & 0 deletions patches/@nuxt__test-utils.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/dist/shared/test-utils.E_cAGA8l.mjs b/dist/shared/test-utils.E_cAGA8l.mjs
index 2d790885c8d43efb490a41145f3694295e6e9363..b70c51a4ec767d3e0b93a9eb85a86e28d9e293a9 100644
--- a/dist/shared/test-utils.E_cAGA8l.mjs
+++ b/dist/shared/test-utils.E_cAGA8l.mjs
@@ -115,7 +115,8 @@ async function buildFixture() {
}

async function setupBun(hooks) {
- const bunTest = await import('bun:test');
+ const specifier = 'bun:test';
+ const bunTest = await import(specifier);
hooks.ctx.mockFn = bunTest.mock;
bunTest.beforeAll(hooks.beforeAll, hooks.ctx.options.setupTimeout);
bunTest.beforeEach(hooks.beforeEach);
Loading