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

chore: Disable vitest globals #6216

Merged
merged 21 commits into from
Oct 22, 2023
Merged

chore: Disable vitest globals #6216

merged 21 commits into from
Oct 22, 2023

Conversation

lachlancollins
Copy link
Member

@lachlancollins lachlancollins commented Oct 22, 2023

Test globals are a remnant from the jest to vitest migration - globals are disabled by default in vitest. Removing them should hopefully increase test performance and reduce unpredictable testing errors. Where relevant, I've moved the testing-library import and cleanup (necessary when globals are disabled) into a test-setup.ts file.

@vercel
Copy link

vercel bot commented Oct 22, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
query ⬜️ Ignored (Inspect) Visit Preview Oct 22, 2023 1:02am

@lachlancollins lachlancollins marked this pull request as draft October 22, 2023 00:26
@nx-cloud
Copy link

nx-cloud bot commented Oct 22, 2023

☁️ Nx Cloud Report

CI is running/has finished running commands for commit cdb4cb1. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


🟥 Failed Commands
nx affected --targets=test:eslint,test:lib,test:types,test:build,test:bundle

Sent with 💌 from NxCloud.

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 3ed48d7:

Sandbox Source
@tanstack/query-example-react-basic-typescript Configuration
@tanstack/query-example-solid-basic-typescript Configuration
@tanstack/query-example-svelte-basic Configuration
@tanstack/query-example-vue-basic Configuration

@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 22, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit cdb4cb1:

Sandbox Source
@tanstack/query-example-react-basic-typescript Configuration
@tanstack/query-example-solid-basic-typescript Configuration
@tanstack/query-example-svelte-basic Configuration
@tanstack/query-example-vue-basic Configuration

@lachlancollins lachlancollins marked this pull request as ready for review October 22, 2023 01:02
@lachlancollins lachlancollins merged commit c014ea7 into TanStack:main Oct 22, 2023
8 of 9 checks passed
@lachlancollins lachlancollins deleted the disable-vitest-globals branch October 22, 2023 01:08
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

Successfully merging this pull request may close these issues.

None yet

1 participant