@developers-joyride/shortify
Version:
High performance URL shortener library with multi-database support (MongoDB, SQLite, PostgreSQL, MySQL)
35 lines (34 loc) • 791 B
JavaScript
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: "ts-jest",
testEnvironment: "node",
testMatch: ["**/*.test.ts"],
collectCoverageFrom: [
"src/**/*.ts",
"!src/**/*.d.ts",
"!src/**/*.interface.ts",
"!src/types/**/*.ts",
],
// Disable coverage thresholds for now
// coverageThreshold: {
// global: {
// branches: 70,
// functions: 80,
// lines: 80,
// statements: 80,
// },
// },
transform: {
"^.+\\.ts$": [
"ts-jest",
{
tsconfig: "tsconfig.json",
},
],
},
// Configure Jest to handle ESM modules like nanoid
transformIgnorePatterns: ["/node_modules/(?!(nanoid)/)"],
moduleNameMapper: {
"^nanoid$": "<rootDir>/node_modules/nanoid/index.cjs",
},
};