| | |
| | | var hadWarnings = false; |
| | | var warnConfig = function (oldPath, newPath, note) { |
| | | hadWarnings = true; |
| | | logger.warn(context, messages_1.interpolate(note ? "\"[jest-config].{{oldPath}}\" is deprecated, use \"[jest-config].{{newPath}}\" instead.\n \u21B3 {{note}}" : "\"[jest-config].{{oldPath}}\" is deprecated, use \"[jest-config].{{newPath}}\" instead.", { |
| | | logger.warn(context, (0, messages_1.interpolate)(note ? "\"[jest-config].{{oldPath}}\" is deprecated, use \"[jest-config].{{newPath}}\" instead.\n \u21B3 {{note}}" : "\"[jest-config].{{oldPath}}\" is deprecated, use \"[jest-config].{{newPath}}\" instead.", { |
| | | oldPath: oldPath, |
| | | newPath: newPath, |
| | | note: note, |
| | |
| | | if (shouldLog) { |
| | | process.env.TS_JEST_LOG = 'ts-jest.log,stderr:warn'; |
| | | } |
| | | logger.warn(context, messages_1.interpolate("Using env. var \"{{old}}\" is deprecated, use \"{{new}}\" instead.", { |
| | | logger.warn(context, (0, messages_1.interpolate)("Using env. var \"{{old}}\" is deprecated, use \"{{new}}\" instead.", { |
| | | old: 'TS_JEST_DEBUG', |
| | | new: 'TS_JEST_LOG', |
| | | })); |