Skip to content
New issue

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

figure out why vitest is failing on Dougs machine #145

Open
dkent600 opened this issue Sep 14, 2022 · 2 comments
Open

figure out why vitest is failing on Dougs machine #145

dkent600 opened this issue Sep 14, 2022 · 2 comments

Comments

@dkent600
Copy link
Contributor

dkent600 commented Sep 14, 2022

npm run test silently fails intermittently running on Doug's machine in both PowerShell and GitBash.

It fails in the most simple case when you replace the tests in contracts-service.spec with this single test:

describe('simple example', () => {
  it('sleeps for 10 seconds', () => {
    return new Promise((resolve: (args: unknown[]) => void): unknown => setTimeout(resolve, 10000)).then(() => expect(true));
  });
});
@dkent600 dkent600 self-assigned this Sep 14, 2022
@dkent600
Copy link
Contributor Author

Gitbash sometimes fails silently, like PowersShell, but also sometimes fails with /c/Program Files/nodejs/npm: line 44: 1707 Segmentation fault "$NODE_EXE" "$NPM_CLI_JS" "$@".

Upgrading node to 18.9.0 and doing a fresh npm ci does not make a difference.

@dkent600
Copy link
Contributor Author

I created this issue with vitest: vitest-dev/vitest#2045

@dkent600 dkent600 removed their assignment Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant