mirror of
https://github.com/jacobtread/obsidian-timekeep.git
synced 2026-07-22 10:10:27 +00:00
Added tests with passing full coverage for the non React logic Moved lots of side effects for loading the current datetime out of the logic
12 lines
No EOL
447 B
JavaScript
12 lines
No EOL
447 B
JavaScript
|
|
const { pathsToModuleNameMapper, JestConfigWithTsJest } = require("ts-jest");
|
|
const { compilerOptions } = require("./tsconfig.json");
|
|
|
|
module.exports = {
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'node',
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
|
|
moduleDirectories: ["node_modules", "<rootDir>"],
|
|
extensionsToTreatAsEsm: ['.ts', '.tsx'],
|
|
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths)
|
|
}; |