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 js test packages to v29 (major) #303

Merged
merged 5 commits into from
Oct 5, 2022

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 29, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@types/jest (source) 27.0.3 -> 29.1.1 age adoption passing confidence
jest (source) 26.6.3 -> 29.1.2 age adoption passing confidence
ts-jest (source) 26.5.6 -> 29.0.3 age adoption passing confidence

Configuration

📅 Schedule: Branch creation - "before 3am on the first day of the month" in timezone Etc/UTC, Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Renovate will not automatically rebase this PR, because other commits have been found.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, click this checkbox. ⚠ Warning: custom changes will be lost.

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

@renovate renovate bot added the renovatebot label Sep 29, 2022
@renovate renovate bot force-pushed the renovate/major-js-test-packages branch 2 times, most recently from 080d9cb to acb6166 Compare September 29, 2022 07:43
@renovate renovate bot force-pushed the renovate/major-js-test-packages branch 2 times, most recently from 63f8736 to 39b7dc4 Compare September 30, 2022 07:28
@renovate renovate bot force-pushed the renovate/major-js-test-packages branch from 39b7dc4 to 3e41d2b Compare September 30, 2022 08:16
@nguyentoanit
Copy link
Contributor

@moltar : Any idea to resolve these errors?

@moltar
Copy link
Contributor

moltar commented Sep 30, 2022

No idea, sorry

@nguyentoanit
Copy link
Contributor

No idea, sorry

New issue which relate to Jest coverage 😄 . This didn't happen locally. 🤷

@nguyentoanit
Copy link
Contributor

Looks like This is a Jest issue: kulshekhar/ts-jest#3691

@moltar
Copy link
Contributor

moltar commented Oct 3, 2022

No idea, sorry

New issue which relate to Jest coverage 😄 . This didn't happen locally. 🤷

Do you mean codecov?

src/config.ts Outdated
@@ -34,7 +34,7 @@ export class JestPollyConfigService {

// eslint-disable-next-line class-methods-use-this
private factory(): PollyConfigWithSecrets {
const recordingsRoot = path.dirname(expect.getState().testPath)
const recordingsRoot = path.dirname(expect.getState().testPath ?? '.')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think better would be to default to process.cwd() here?

@nguyentoanit
Copy link
Contributor

No idea, sorry

New issue which relate to Jest coverage 😄 . This didn't happen locally. 🤷

Do you mean codecov?

Yeah. Codecov CI was failed. Jest threw an error inside that CI.

import { Polly } from '@pollyjs/core'

import { jestPollyConfigService, jestPollyContext } from '.'
import { JestPollyConfigService } from './config'

describe('index', () => {
it('exports polly instance', () => {
// eslint-disable-next-line jest/no-disabled-tests
it.skip('exports polly instance', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strange here. 🤔

index › exports polly instance

    expect(received).toBeInstanceOf(expected)

    Expected constructor: Polly
    Received constructor: Polly

      10 |     expect.assertions(1)
      11 |
    > 12 |     expect(jestPollyContext.polly).toBeInstanceOf(Polly)
         |                                    ^
      13 |   })
      14 |
      15 |   it('exports polly config service', () => {

      at Object.<anonymous> (src/index.test.ts:12:36)
      ```

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, saw that too. Really really strange! No idea 🤷🏼

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@moltar : Commented it out. 😞

@codecov-commenter
Copy link

codecov-commenter commented Oct 5, 2022

Codecov Report

Base: 81.81% // Head: 81.81% // No change to project coverage 👍

Coverage data is based on head (128ad72) compared to base (ad4a63d).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #303   +/-   ##
=======================================
  Coverage   81.81%   81.81%           
=======================================
  Files           6        6           
  Lines         110      110           
  Branches       24       25    +1     
=======================================
  Hits           90       90           
+ Misses         20       17    -3     
- Partials        0        3    +3     
Impacted Files Coverage Δ
src/config.ts 100.00% <100.00%> (ø)
src/jest-polly.ts 57.44% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@nguyentoanit
Copy link
Contributor

No idea, sorry

New issue which relate to Jest coverage 😄 . This didn't happen locally. 🤷

Do you mean codecov?

we were using Node.js v12 for Codecov. Perhaps, they weren't supported and threw an exception. 😄

@nguyentoanit nguyentoanit merged commit 940874b into master Oct 5, 2022
@nguyentoanit nguyentoanit deleted the renovate/major-js-test-packages branch October 5, 2022 03:20
@github-actions
Copy link

🎉 This PR is included in version 1.5.66 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

3 participants