mirror of
https://github.com/alphahasher/obsidian-remove-links.git
synced 2026-07-22 05:51:41 +00:00
* Add 'ts-jest' dependency - preparing to convert test to TypeScript * Add minimal jest.config.js This tells Jest "when you see a .ts file, use ts-jest to transform it" * Convert Jest test file from JavaScript to TypeScript * Extract removeHyperlinks() to its own file, so it can be tested Pure refactoring - done with the Move facility in WebStorm. * Make tests check the removeHyperlinks() that is used by main.ts Jest test now imports removeHyperlinks() used by main.ts, removing the original need to keep the two copies of removeHyperlinks() in sync.
3 lines
41 B
JavaScript
3 lines
41 B
JavaScript
module.exports = {
|
|
preset: 'ts-jest'
|
|
};
|