@santi100a/percentage-lib
Version:
Santi's Powerful Percentage Function: Easily find percentages!
11 lines (10 loc) • 396 B
JavaScript
/** @type {import('ts-jest').JestConfigWithTsJest} */
// jest.config.js or jest.config.ts
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node', // Use 'jsdom' if you're testing browser-related code.
testRegex: '.*\\.test\\.(t|j)s$', // This matches files ending with .test.ts
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1' // Adjust this based on your project structure.
}
};