alphahasher_obsidian-remove.../jest.config.js
Clare Macrae ca69e9c411
Jest tests & plugin use same removeHyperlinks() (#3)
* 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.
2025-07-01 10:19:17 -07:00

3 lines
41 B
JavaScript

module.exports = {
preset: 'ts-jest'
};