E66C Show fallback message for typescript jest preset if ts-jest is not in… by m0ksem · Pull Request #6418 · vuejs/vue-cli · GitHub
[go: up one dir, main page]

Skip to content

Show fallback message for typescript jest preset if ts-jest is not in… #6418

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

Merged
merged 2 commits into from
Apr 15, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Resolve ts-jest module in typescript jest-preset.
Co-authored-by: Haoqun Jiang <haoqunjiang@gmail.com>
  • Loading branch information
m0ksem and haoqunjiang authored Apr 14, 2021
commit bf4e0a7b695560084dbab8eb45ca78e94f5ec942
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const defaultPreset = require('../default/jest-preset')

let tsJest = null
try {
tsJest = require('ts-jest')
tsJest = require.resolve('ts-jest')
} catch (e) {
throw new Error('Cannot resolve "ts-jest" module. Typescript preset requires "ts-jest" to be installed.')
}
Expand Down
0