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

[legacy-framework] Fix your jest tests failing because of useQuery error message #1357

Merged
merged 5 commits into from
Oct 18, 2020

Conversation

flybayer
Copy link
Member

@flybayer flybayer commented Oct 18, 2020

What are the changes and their implications?

Fix jest tests failing because of useQuery error message. This only throws the warning message if not running in a end-user jest test environment.

Checklist

  • Tests added for changes
  • [ ] PR submitted to blitzjs.com for any user facing changes

@github-actions
Copy link
Contributor

github-actions bot commented Oct 18, 2020

Size Change: +218 B (0%)

Total Size: 190 kB

Filename Size Change
packages/core/dist/core.cjs.development.js 12.5 kB +88 B (0%)
packages/core/dist/core.cjs.production.min.js 6.83 kB +49 B (0%)
packages/core/dist/core.esm.js 12.2 kB +77 B (0%)
packages/server/dist/server.cjs.development.js 20.7 kB +1 B
packages/server/dist/server.cjs.production.min.js 12 kB +2 B (0%)
packages/server/dist/server.esm.js 20.8 kB +1 B
ℹ️ View Unchanged
Filename Size Change
packages/blitz/dist/cli.js 15.7 kB 0 B
packages/blitz/dist/index.js 245 B 0 B
packages/config/dist/config.cjs.development.js 1.35 kB 0 B
packages/config/dist/config.cjs.production.min.js 916 B 0 B
packages/config/dist/config.esm.js 1.28 kB 0 B
packages/config/dist/index.js 143 B 0 B
packages/core/dist/index.js 141 B 0 B
packages/display/dist/display.cjs.development.js 1.43 kB 0 B
packages/display/dist/display.cjs.production.min.js 819 B 0 B
packages/display/dist/display.esm.js 1.33 kB 0 B
packages/display/dist/index.js 144 B 0 B
packages/file-pipeline/dist/file-pipeline.cjs.development.js 5.9 kB 0 B
packages/file-pipeline/dist/file-pipeline.cjs.production.min.js 3.02 kB 0 B
packages/file-pipeline/dist/file-pipeline.esm.js 5.76 kB 0 B
packages/file-pipeline/dist/index.js 147 B 0 B
packages/generator/dist/generator.cjs.development.js 15.6 kB 0 B
packages/generator/dist/generator.cjs.production.min.js 9.45 kB 0 B
packages/generator/dist/generator.esm.js 15.3 kB 0 B
packages/generator/dist/index.js 145 B 0 B
packages/generator/dist/templates/app/babel.config.js 77 B 0 B
packages/generator/dist/templates/app/blitz.config.js 324 B 0 B
packages/generator/dist/templates/app/jest.config.js 682 B 0 B
packages/generator/dist/templates/app/test/__mocks__/fileMock.js 54 B 0 B
packages/installer/dist/index.js 145 B 0 B
packages/installer/dist/installer.cjs.development.js 7.68 kB 0 B
packages/installer/dist/installer.cjs.production.min.js 5.13 kB 0 B
packages/installer/dist/installer.esm.js 7.53 kB 0 B
packages/repl/dist/index.js 141 B 0 B
packages/repl/dist/repl.cjs.development.js 1.81 kB 0 B
packages/repl/dist/repl.cjs.production.min.js 1.08 kB 0 B
packages/repl/dist/repl.esm.js 1.69 kB 0 B
packages/server/dist/index.js 142 B 0 B

compressed-size-action

@flybayer flybayer changed the title Fix jest tests failing because of useQuery error message Fix your jest tests failing because of useQuery error message Oct 18, 2020
@flybayer flybayer merged commit 3087446 into canary Oct 18, 2020
@flybayer flybayer deleted the fix-jest2 branch October 18, 2020 21:35
ntgussoni added a commit to ntgussoni/blitz that referenced this pull request Feb 7, 2021
* 'canary' of https://github.com/blitz-js/blitz: (43 commits)
  v0.25.0-canary.0
  docs: add nemesv as a contributor (blitz-js#1373)
  Fix `blitz db seed` not working (blitz-js#1363)
  docs: add sirmyron as a contributor (blitz-js#1361)
  Added useMemo call for response from useRouter (blitz-js#1352)
  Fix your jest tests failing because of useQuery error message (blitz-js#1357)
  docs: add markhaehnel as a contributor (blitz-js#1360)
  Fix blitz CLI not using proper exit codes (blitz-js#1316)
  docs: add dulcehc as a contributor (blitz-js#1359)
  (newapp) Add incremental:true to tsconfig.json (blitz-js#1350)
  Add @zanedb as a contributor
  docs: add nksaraf as a contributor (blitz-js#1358)
  Fix db.connect error when using without prisma (blitz-js#1342)
  Adds test to assert useMutation validation (blitz-js#1351)
  (newapp) Fix tests not found if app has blitz in the name (blitz-js#1355)
  Add setQueryData to react-query-utils AND rename mutate to setQueryData (blitz-js#1291)
  Fix error stack trace regression by upgrading tslog: 2.9.0 → 2.9.1 (patch) (blitz-js#1348)
  Upgrade superjson: 1.2.3 → 1.3.0  (blitz-js#1347)
  v0.24.3
  Add loading progress indicator to `blitz console` (blitz-js#1336)
  ...
@itsdillon itsdillon changed the title Fix your jest tests failing because of useQuery error message [legacy-framework] Fix your jest tests failing because of useQuery error message Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant