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

Alternate setup with @babel/preset-typescript without ts-jest #308

Open
wtho opened this issue Sep 17, 2019 · 0 comments · May be fixed by #317
Open

Alternate setup with @babel/preset-typescript without ts-jest #308

wtho opened this issue Sep 17, 2019 · 0 comments · May be fixed by #317
Labels
🚀 Feature Request new suggested feature

Comments

@wtho
Copy link
Collaborator

wtho commented Sep 17, 2019

Babel put quite some resources into transpiling TypeScript to JS as well, and with the first-class support of babel in jest we would like to give the user the choice of using ts-jest or babel for transpiling their angular projects for jest.

Setting a babel option up and providing this to users will make this preset less opiniated and more objective, plus will also give us a clear picture which mode is faster and what problems arise with what transpilers respectively.


There are known caveats though, as babel does not type check the tests itself (similar to ts-jest's isolatedModules: true).

@wtho wtho added the 🚀 Feature Request new suggested feature label Sep 17, 2019
@wtho wtho linked a pull request Oct 2, 2019 that will close this issue
6 tasks
wtho added a commit to wtho/jest-preset-angular that referenced this issue Oct 25, 2019
BREAKING CHANGE: add an alternative preset for babel and restructures
the whole repository to treat babel and ts-jest equally.

The jest config of users will have to be adjusted, see the CHANGELOG.md
for migration information.

Closes thymikee#308
wtho added a commit to wtho/jest-preset-angular that referenced this issue Oct 25, 2019
BREAKING CHANGE: add an alternative preset for babel and restructures
the whole repository to treat babel and ts-jest equally.

The jest config of users will have to be adjusted, see the CHANGELOG.md
for migration information.

Closes thymikee#308
wtho added a commit to wtho/jest-preset-angular that referenced this issue Oct 25, 2019
BREAKING CHANGE: add an alternative preset for babel and restructures
the whole repository to treat babel and ts-jest equally.

The jest config of users will have to be adjusted, see the CHANGELOG.md
for migration information.

Closes thymikee#308
wtho added a commit to wtho/jest-preset-angular that referenced this issue Oct 27, 2019
BREAKING CHANGE: add an alternative preset for babel and restructures
the whole repository to treat babel and ts-jest equally. Furthermore
`ts-jest` is not a dependency of the preset anymore.

The jest config and package.json of users will have to be adjusted, see
the CHANGELOG.md for migration information.

Closes thymikee#308
wtho added a commit to wtho/jest-preset-angular that referenced this issue Dec 2, 2019
BREAKING CHANGE: add an alternative preset for babel and restructures
the whole repository to treat babel and ts-jest equally. Furthermore
`ts-jest` is not a dependency of the preset anymore.

The jest config and package.json of users will have to be adjusted, see
the CHANGELOG.md for migration information.

Closes thymikee#308
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 Feature Request new suggested feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant