0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Vitest に関するTIPs/トラブルシューティング (WIP)

Posted at

概要

Vitest に関するTIPs/トラブルシューティングをまとめる。

TIPs

完全なスタックトレースを出させる

node_modules 内のスタックトレースを出してくれず、デバッグが難しい時がある。
2022.8.18 現在、 printError の options を直接いじるしか無さそう。

// node_modules/vitest/dist/chunk-vite-node-externalize.*.mjs
async function printError(error, ctx, options = {}) {
  options = {...options, showCodeFrame: true, fullStack: true};  // <==== 追加
  const { showCodeFrame = true, fullStack = false, type } = options;

関連: feat: error log improvements by sheremet-va · Pull Request #1202 · vitest-dev/vitest

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?