We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi I got this error, how can I solve this problem?
`src/tests/user.spec.ts
Error: Timeout waiting for port 7501 after 32 retries with 500ms interval.
/node_modules/.pnpm/[email protected]/node_modules/get-port-please/dist/index.mjs:164:9
/node_modules/.pnpm/vite-test-utils@0.6.0_@types[email protected]/node_modules/vite-test-utils/dist/index.mjs:60:3
/node_modules/.pnpm/vite-test-utils@0.6.0_@types[email protected]/node_modules/vite-test-utils/dist/index.mjs:146:7
undefined`
code ` import { setup, $fetch } from 'vite-test-utils'; import { expect, describe, it,test } from 'vitest';
await setup({ // test context options server: true });
test('create a todo', async () => { const form =JSON.stringify({ email: '[email protected]', password: 'sdwefsdgvvcs', rememberMe: false }) const { todo } = await $fetch('/user/login', { method: 'POST', body: form, headers: { accept: 'application/json' } })
expect(todo).toHaveProperty('uid') expect(todo).toHaveProperty('created_at') expect(todo).toContain({ text: 'task1', done: false })
})`
Reproduction
System: OS: Windows 10 10.0.19045 CPU: (4) x64 AMD A6-6310 APU with AMD Radeon R4 Graphics Memory: 2.78 GB / 10.97 GB Binaries: Node: 20.1.0 - C:\Program Files\nodejs\node.EXE npm: 9.6.7 - C:\Program Files\nodejs\npm.CMD pnpm: 8.6.3 - ~\AppData\Local\pnpm\pnpm.EXE Browsers: Edge: Spartan (44.19041.1266.0), Chromium (114.0.1823.67) Internet Explorer: 11.0.19041.1566
pnpm
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Hi
I got this error, how can I solve this problem?
`src/tests/user.spec.ts
Error: Timeout waiting for port 7501 after 32 retries with 500ms interval.
/node_modules/.pnpm/[email protected]/node_modules/get-port-please/dist/index.mjs:164:9
/node_modules/.pnpm/vite-test-utils@0.6.0_@types[email protected]/node_modules/vite-test-utils/dist/index.mjs:60:3
/node_modules/.pnpm/vite-test-utils@0.6.0_@types[email protected]/node_modules/vite-test-utils/dist/index.mjs:146:7
undefined`
code
`
import { setup, $fetch } from 'vite-test-utils';
import { expect, describe, it,test } from 'vitest';
await setup({
// test context options
server: true
});
test('create a todo', async () => {
const form =JSON.stringify({ email: '[email protected]', password: 'sdwefsdgvvcs', rememberMe: false })
const { todo } = await $fetch('/user/login', {
method: 'POST',
body: form,
headers: {
accept: 'application/json'
}
})
})`
Reproduction
Reproduction
System Info
Used Package Manager
pnpm
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: