UNPKG

node-scripts-docs

Version:

Generate documentation for your `package.json` scripts.

21 lines (19 loc) 454 B
"use strict"; /** @type {import('ts-jest').JestConfigWithTsJest} */ module.exports = { // [...] preset: "ts-jest/presets/default-esm", // or other ESM presets moduleNameMapper: { "^(\\.{1,2}/.*)\\.js$": "$1", }, transform: { // '^.+\\.[tj]sx?$' to process js/ts with `ts-jest` // '^.+\\.m?[tj]sx?$' to process js/ts/mjs/mts with `ts-jest` "^.+\\.tsx?$": [ "ts-jest", { useESM: true, }, ], }, };