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(deps): update devdependencies - autoclosed #112

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 8, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@types/eslint (source) ~8.44.2 -> ~8.44.3 age adoption passing confidence
@types/node (source) ~20.6.3 -> ~20.8.3 age adoption passing confidence
@vitest/coverage-v8 (source) ~0.34.5 -> ~0.34.6 age adoption passing confidence
eslint (source) ~8.49.0 -> ~8.51.0 age adoption passing confidence
eslint-plugin-testing-library ~6.0.1 -> ~6.0.2 age adoption passing confidence
eslint-plugin-vitest ~0.3.1 -> ~0.3.2 age adoption passing confidence
expect-type ~0.16.0 -> ~0.17.3 age adoption passing confidence
rimraf ~5.0.1 -> ~5.0.5 age adoption passing confidence
tsx ~3.12.10 -> ~3.13.0 age adoption passing confidence

Release Notes

vitest-dev/vitest (@​vitest/coverage-v8)

v0.34.6

Compare Source

   🐞 Bug Fixes
    View changes on GitHub
eslint/eslint (eslint)

v8.51.0

Compare Source

Features

  • 0a9c433 feat: Add --no-warn-ignored CLI option for flat config (#​17569) (Domantas Petrauskas)
  • 977e67e feat: logical-assignment-operators to report expressions with 3 operands (#​17600) (Yosuke Ota)

Bug Fixes

  • f976b2f fix: make rule severity case-sensitive in flat config (#​17619) (Milos Djermanovic)
  • 0edfe36 fix: Ensure crash error messages are not duplicated (#​17584) (Nicholas C. Zakas)
  • dd79abc fix: eslint-disable to be able to parse quoted rule names (#​17612) (Yosuke Ota)
  • d2f6801 fix: Ensure correct code path for && followed by ?? (#​17618) (Nicholas C. Zakas)

Documentation

  • ee5be81 docs: default to sourceType: "module" in rule examples (#​17615) (Francesco Trotta)
  • 1aa26df docs: Add more examples for multiline-ternary (#​17610) (George Ashiotis)
  • 47d0b44 docs: Update README (GitHub Actions Bot)
  • dbf831e docs: use generated og image (#​17601) (Percy Ma)
  • 1866da5 docs: Update README (GitHub Actions Bot)

Chores

v8.50.0

Compare Source

Features

  • 27d5a9e feat: add suggestions to array-callback-return (#​17590) (Tanuj Kanti)
  • f9082ff feat: flat-rule-tester make sure default config always matches (#​17585) (fnx)
  • 83914ad feat: Implement SourceCode#applyInlineConfig() (#​17351) (Nicholas C. Zakas)
  • 22a5582 feat: add rule no-object-constructor, deprecate no-new-object (#​17576) (Francesco Trotta)
  • 85a3d9e feat: allowVoid option in array-callback-return (#​17564) (Tanuj Kanti)

Bug Fixes

  • cc4d26b fix: Ensure deprecated context.parserServices warns (#​17593) (Nicholas C. Zakas)
  • 1ea4cfb fix: Ensure all RuleTester tests all deprecated context methods (#​17587) (Nicholas C. Zakas)
  • aa1b657 fix: wrong suggestion and message in no-misleading-character-class (#​17571) (Yosuke Ota)

Documentation

  • 1800537 docs: Fix and standardize JSX code examples (#​17591) (Francesco Trotta)
  • 48a44a7 docs: Add correct/incorrect tags to prefer-arrow-callback (#​17589) (Francesco Trotta)
  • 20893d4 docs: fix incorrect tag's place (#​17575) (Tanuj Kanti)
  • bd7a71f docs: Update README (GitHub Actions Bot)

Chores

testing-library/eslint-plugin-testing-library (eslint-plugin-testing-library)

v6.0.2

Compare Source

Bug Fixes
veritem/eslint-plugin-vitest (eslint-plugin-vitest)

v0.3.2

Compare Source

Fixes
mmkal/expect-type (expect-type)

v0.17.3

Compare Source

v0.17.2

Compare Source

Diff(truncated - scroll right!):

test('toEqualTypeOf with tuples', () => {
  const assertion = `expectTypeOf<[[number], [1], []]>().toEqualTypeOf<[[number], [2], []]>()`
  expect(tsErrors(assertion)).toMatchInlineSnapshot(`
-    "test/test.ts:999:999 - error TS2344: Type '[[number], [2], []]' does not satisfy the constraint '{ [x: number]: { [x: number]: number; [iterator]: (() => IterableIterator<1>) | (() => IterableIterator<number>) | (() => IterableIterator<never>); [unscopables]: (() => { copyWithin: boolean; entries: boolean; fill: boolean; find: boolean; findIndex: boolean; keys: boolean; values: boolean; }) | (() => { copyWithin: boolean; entries: boolean; fill: boolean; find: boolean; findIndex: boolean; keys: boolean; values: boolean; }) | (() => { copyWithin: boolean; entries: boolean; fill: boolean; find: boolean; findIndex: boolean; keys: boolean; values: boolean; }); length: 0 | 1; toString:  ... truncated!!!!'.
-      Types of property 'sort' are incompatible.
-        Type '(compareFn?: ((a: [] | [number] | [2], b: [] | [number] | [2]) => number) | undefined) => [[number], [2], []]' is not assignable to type '\\"Expected: function, Actual: function\\"'.
+    "test/test.ts:999:999 - error TS2344: Type '[[number], [2], []]' does not satisfy the constraint '{ 0: { 0: number; }; 1: { 0: \\"Expected: literal number: 2, Actual: literal number: 1\\"; }; 2: {}; }'.
+      The types of '1[0]' are incompatible between these types.
+        Type '2' is not assignable to type '\\"Expected: literal number: 2, Actual: literal number: 1\\"'.
    999 expectTypeOf<[[number], [1], []]>().toEqualTypeOf<[[number], [2], []]>()
                                                          ~~~~~~~~~~~~~~~~~~~"
  `)
})

v0.17.1

Compare Source

  • disallow .not and .branded together cf38918

(this was actually documented in the v0.17.0 release but really it was only pushed here)

v0.17.0

Compare Source

#​16 went in to - hopefully - significantly improve the error messages produce on failing assertions. Here's an example of how vitest's failing tests were improved:

Before:

image

After:

image

Docs copied from the readme about how to interpret these error messages


Error messages

When types don't match, .toEqualTypeOf and .toMatchTypeOf use a special helper type to produce error messages that are as actionable as possible. But there's a bit of an nuance to understanding them. Since the assertions are written "fluently", the failure should be on the "expected" type, not the "actual" type (expect<Actual>().toEqualTypeOf<Expected>()). This means that type errors can be a little confusing - so this library produces a MismatchInfo type to try to make explicit what the expectation is. For example:

expectTypeOf({a: 1}).toEqualTypeOf<{a: string}>()

Is an assertion that will fail, since {a: 1} has type {a: number} and not {a: string}. The error message in this case will read something like this:

test/test.ts:999:999 - error TS2344: Type '{ a: string; }' does not satisfy the constraint '{ a: \\"Expected: string, Actual: number\\"; }'.
  Types of property 'a' are incompatible.
    Type 'string' is not assignable to type '\\"Expected: string, Actual: number\\"'.

999 expectTypeOf({a: 1}).toEqualTypeOf<{a: string}>()

Note that the type constraint reported is a human-readable messaging specifying both the "expected" and "actual" types. Rather than taking the sentence Types of property 'a' are incompatible // Type 'string' is not assignable to type "Expected: string, Actual: number" literally - just look at the property name ('a') and the message: Expected: string, Actual: number. This will tell you what's wrong, in most cases. Extremely complex types will of course be more effort to debug, and may require some experimentation. Please raise an issue if the error messages are actually misleading.

The toBe... methods (like toBeString, toBeNumber, toBeVoid etc.) fail by resolving to a non-callable type when the Actual type under test doesn't match up. For example, the failure for an assertion like expectTypeOf(1).toBeString() will look something like this:

test/test.ts:999:999 - error TS2349: This expression is not callable.
  Type 'ExpectString<number>' has no call signatures.

999 expectTypeOf(1).toBeString()
                    ~~~~~~~~~~

The This expression is not callable part isn't all that helpful - the meaningful error is the next line, Type 'ExpectString<number> has no call signatures. This essentially means you passed a number but asserted it should be a string.

If TypeScript added support for "throw" types these error messagess could be improved. Until then they will take a certain amount of squinting.

Concrete "expected" objects vs typeargs

Error messages for an assertion like this:

expectTypeOf({a: 1}).toEqualTypeOf({a: ''})

Will be less helpful than for an assertion like this:

expectTypeOf({a: 1}).toEqualTypeOf<{a: string}>()

This is because the TypeScript compiler needs to infer the typearg for the .toEqualTypeOf({a: ''}) style, and this library can only mark it as a failure by comparing it against a generic Mismatch type. So, where possible, use a typearg rather than a concrete type for .toEqualTypeOf and toMatchTypeOf. If it's much more convenient to compare two concrete types, you can use typeof:

const one = valueFromFunctionOne({some: {complex: inputs}})
const two = valueFromFunctionTwo({some: {other: inputs}})

expectTypeOf(one).toEqualTypeof<typeof two>()

Kinda-breaking changes: essentially none, but technically, .branded no longer returns a "full" ExpectTypeOf instance at compile-time. Previously you could do this:

expectTypeOf<{a: {b: 1} & {c: 1}}>().branded.not.toEqualTypeOf<{a: {b: 1; c: ''}}>()
expectTypeOf<{a: {b: 1} & {c: 1}}>().not.branded.toEqualTypeOf<{a: {b: 1; c: ''}}>()

Now that won't work (and it was always slightly nonsensical), so you'd have to use // @&#8203;ts-expect-error instead of not if you have a negated case where you need branded:

// @&#8203;ts-expect-error
expectTypeOf<{a: {b: 1} & {c: 1}}>().branded.not.toEqualTypeOf<{a: {b: 1; c: ''}}>()

What's Changed

New Contributors

Full Changelog: mmkal/expect-type@v0.16.0...v0.17.0

isaacs/rimraf (rimraf)

v5.0.5

Compare Source

v5.0.4

Compare Source

v5.0.3

Compare Source

v5.0.2

Compare Source

esbuild-kit/tsx (tsx)

v3.13.0

Compare Source

Features

This release is also available on:


Configuration

📅 Schedule: Branch creation - "after 10pm every weekday,before 5am every weekday,every weekend" in timezone Europe/Berlin, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot requested a review from Shinigami92 as a code owner June 8, 2022 23:29
@renovate renovate bot added the dependencies Pull requests that update a dependency file label Jun 8, 2022
@renovate renovate bot changed the title Update dependency @types/eslint to ~8.4.3 Update devDependencies Jun 11, 2022
@renovate renovate bot force-pushed the renovate/devdependencies branch 2 times, most recently from 989da65 to 21d5a10 Compare June 17, 2022 22:12
@renovate renovate bot force-pushed the renovate/devdependencies branch 4 times, most recently from 7b6cc1b to 702ded2 Compare June 23, 2022 11:21
@renovate renovate bot force-pushed the renovate/devdependencies branch 7 times, most recently from 6479b88 to c7d4130 Compare July 1, 2022 17:38
@renovate renovate bot changed the title Update devDependencies Update devDependencies - autoclosed Jul 1, 2022
@renovate renovate bot closed this Jul 1, 2022
@renovate renovate bot deleted the renovate/devdependencies branch July 1, 2022 17:40
@renovate renovate bot changed the title Update devDependencies - autoclosed Update devDependencies Jul 2, 2022
@renovate renovate bot restored the renovate/devdependencies branch July 2, 2022 04:00
@renovate renovate bot reopened this Jul 2, 2022
@renovate renovate bot force-pushed the renovate/devdependencies branch from c7d4130 to 5dc7ace Compare July 2, 2022 06:04
@renovate renovate bot changed the title Update devDependencies Update dependency eslint to ~8.19.0 Jul 2, 2022
@renovate renovate bot force-pushed the renovate/devdependencies branch from 5dc7ace to 87e616c Compare July 2, 2022 21:34
@renovate renovate bot changed the title Update dependency eslint to ~8.19.0 Update devDependencies Jul 2, 2022
@renovate renovate bot force-pushed the renovate/devdependencies branch 2 times, most recently from 1a1c5fa to 84d4a55 Compare July 7, 2022 22:36
@renovate renovate bot force-pushed the renovate/devdependencies branch 2 times, most recently from 46a22f3 to f868ef7 Compare July 18, 2022 14:20
@renovate renovate bot deleted the renovate/devdependencies branch September 22, 2023 19:00
@renovate renovate bot changed the title chore(deps): update devdependencies - autoclosed chore(deps): update devdependencies Sep 22, 2023
@renovate renovate bot reopened this Sep 22, 2023
@renovate renovate bot restored the renovate/devdependencies branch September 22, 2023 22:24
@renovate renovate bot changed the title chore(deps): update devdependencies chore(deps): update dependency eslint to ~8.50.0 Sep 22, 2023
@renovate renovate bot force-pushed the renovate/devdependencies branch from 0633c69 to 90a9592 Compare September 22, 2023 22:24
@renovate renovate bot changed the title chore(deps): update dependency eslint to ~8.50.0 chore(deps): update devdependencies Sep 23, 2023
@renovate renovate bot force-pushed the renovate/devdependencies branch 11 times, most recently from c963df0 to 10018f6 Compare September 30, 2023 09:56
@renovate renovate bot force-pushed the renovate/devdependencies branch 7 times, most recently from f581c68 to 9583f3e Compare October 7, 2023 02:50
@renovate renovate bot force-pushed the renovate/devdependencies branch from 9583f3e to ab965f4 Compare October 7, 2023 22:28
@renovate renovate bot changed the title chore(deps): update devdependencies chore(deps): update devdependencies - autoclosed Oct 7, 2023
@renovate renovate bot closed this Oct 7, 2023
@renovate renovate bot deleted the renovate/devdependencies branch October 7, 2023 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants