[test] coverage directories specified

This commit is contained in:
Revone 2023-11-05 21:37:01 +08:00
parent d6b394446a
commit 919efc04a2
2 changed files with 7 additions and 3 deletions

View file

@ -1,9 +1,13 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['<rootDir>/test/**/*.test.ts', '<rootDir>/test/**/*.test.js'],
testMatch: ['<rootDir>/test/unit/**/*.test.ts', '<rootDir>/test/unit/**/*.test.js'],
collectCoverage: true,
coverageReporters: ['clover', 'json', 'lcov', ['text', {skipFull: true}], "json-summary"],
coverageDirectory: 'coverage',
testPathIgnorePatterns: ['<rootDir>/test/integration/', '<rootDir>/test/performance/']
collectCoverageFrom: [
'src/data-structures/**/*.{ts,js}',
'src/types/**/*.{ts,js}',
'src/interfaces/**/*.{ts,js}',
],
};

View file

@ -1,6 +1,6 @@
{
"name": "data-structure-typed",
"version": "1.41.9",
"version": "1.42.0",
"description": "Data Structures of Javascript & TypeScript. Binary Tree, BST, Graph, Heap, Priority Queue, Linked List, Queue, Deque, Stack, AVL Tree, Tree Multiset, Trie, Directed Graph, Undirected Graph, Singly Linked List, Doubly Linked List, Max Heap, Max Priority Queue, Min Heap, Min Priority Queue.",
"main": "dist/cjs/src/index.js",
"module": "dist/mjs/src/index.js",