Skip to content

Conversation

nogic1008
Copy link
Collaborator

⚠️This PR contains BREAKING CHANGES!!⚠️

This PR conflicts with #468, so I set as draft.
Resolve #171, #431

Changes

  • Use tsconfig package to load TypeScript config.
  • Remove ts-jest peerDependencies.

Breaking Changes

  • Some tests will break that depend on ts-jest config.
// jest.config.js
module.exports = {
  globals: {
    "ts-jest": {...} // Not loaded during transforming Vue (use tsconfig.json instead)
  }
}

@nogic1008 nogic1008 added bug dependencies Pull requests that update a dependency file labels May 11, 2022
@nogic1008 nogic1008 self-assigned this May 11, 2022
@nogic1008 nogic1008 force-pushed the chore/remove-ts-jest branch from f70abd7 to 83fbdc1 Compare May 17, 2022 07:39
@nogic1008 nogic1008 linked an issue May 17, 2022 that may be closed by this pull request
@nogic1008 nogic1008 marked this pull request as ready for review May 17, 2022 07:41
@nogic1008 nogic1008 requested a review from lmiller1990 May 17, 2022 07:41
@lmiller1990
Copy link
Member

thanks @nogic1008 - I'm away for 1 week, I can review when I get back.

@Aaron-Pool
Copy link

@lmiller1990 is there a particular reason this wasn't merged? I'd like to upgrade to the new versions of vue-jest, but I'd rather not have to install ts-jest, since I use babel for my typescript transpilations in my test environment

@lmiller1990
Copy link
Member

@Aaron-Pool good question, my main concern was I am not sure how to handle breaking changes, since we now tie ourselves to Jest versions.

I guess it's time to tear of the band-aid, merge this and ship it. I will make this 28.1 - a minor version bump, and include the breaking change in the notes.

@lmiller1990 lmiller1990 merged commit a84eafb into vuejs:master Aug 15, 2022
@lmiller1990
Copy link
Member

It's out. Thanks all, especially @nogic1008... https://github.com/vuejs/vue-jest/releases/tag/v28.1.0

@Aaron-Pool
Copy link

It's out. Thanks all, especially @nogic1008... https://github.com/vuejs/vue-jest/releases/tag/v28.1.0

And thank you, sir, for getting back to me so quickly 👏

@nogic1008 nogic1008 deleted the chore/remove-ts-jest branch August 29, 2022 23:36
thebanjomatic pushed a commit to thebanjomatic/vue-jest that referenced this pull request Oct 11, 2022
A change introduced in v28.1.0 in PR vuejs#471 unintentionally changed the behavior of the tsconfig parsing such that configs using "extends" were no longer being considered.

Fixes: vuejs#495
thebanjomatic pushed a commit to thebanjomatic/vue-jest that referenced this pull request Oct 11, 2022
A change introduced in v28.1.0 in PR vuejs#471 unintentionally changed the behavior of the tsconfig parsing such that configs using "extends" were no longer being considered.

Fixes: vuejs#495
thebanjomatic pushed a commit to thebanjomatic/vue-jest that referenced this pull request Oct 11, 2022
A change introduced in v28.1.0 in PR vuejs#471 unintentionally changed the behavior of the tsconfig parsing such that configs using "extends" were no longer being considered.

Fixes: vuejs#495
thebanjomatic pushed a commit to thebanjomatic/vue-jest that referenced this pull request Oct 11, 2022
A change introduced in v28.1.0 in PR vuejs#471 unintentionally changed the behavior of the tsconfig parsing such that configs using "extends" were no longer being considered.

Fixes: vuejs#495
thebanjomatic pushed a commit to thebanjomatic/vue-jest that referenced this pull request Nov 1, 2022
A change introduced in v28.1.0 in PR vuejs#471 unintentionally changed the behavior of the tsconfig parsing such that configs using "extends" were no longer being considered.

Fixes: vuejs#495
lmiller1990 pushed a commit that referenced this pull request Nov 3, 2022
* fix(tsconfig): parse extended tsconfigs when transpiling script blocks

A change introduced in v28.1.0 in PR #471 unintentionally changed the behavior of the tsconfig parsing such that configs using "extends" were no longer being considered.

Fixes: #495

* chore(cache): cache tsconfig parsing to avoid the cost per vue file / interpolated string

Co-authored-by: Adam Hines <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fails on lack of ts-jest even though it's optional tsConfig option doesn't work
3 participants