トップに戻る
tags
jest.config.js
moduleNameMapper を以下のように追加します
module.exports = { preset: "ts-jest", ....... moduleNameMapper: { "^@/(.+)$": "<rootDir>/src/$1", // jest実行時に '@/'を解決 }, }
edit