Skip to content

Commit

Permalink
Unit test (#110)
Browse files Browse the repository at this point in the history
* Added unit test case for epv07

* Reverted files

* Reverted file

* Reverted file
  • Loading branch information
Jineshdarjee authored Jun 18, 2024
1 parent b3bf21c commit 58a37f8
Show file tree
Hide file tree
Showing 4 changed files with 2,121 additions and 788 deletions.
48 changes: 21 additions & 27 deletions backend/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,39 +1,33 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
export default {
preset: 'ts-jest/presets/js-with-ts-esm',
preset: "ts-jest/presets/js-with-ts-esm",
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
"^(\\.{1,2}/.*)\\.js$": "$1",
},
testEnvironment: 'node',
testEnvironment: "node",
transform: {
'^.+\\.ts?$': [
'ts-jest',
{
useESM: true,
},
],
"^.+\\.ts?$": [
"ts-jest",
{
useESM: true,
},
],
},
transformIgnorePatterns: [
'node_modules/(?!(data-uri-to-buffer|formdata-polyfill|fetch-blob|node-fetch)/)',
],
testPathIgnorePatterns: [
'/node_modules/',
'/build/'
"node_modules/(?!(data-uri-to-buffer|formdata-polyfill|fetch-blob|node-fetch)/)",
],
testPathIgnorePatterns: ["/node_modules/", "/build/"],
resetModules: true,
testTimeout: 30000,
testTimeout: 90000,
coverageThreshold: {
global: {
statements: 95,
branches: 75,
functions: 100,
lines: 95,
},
global: {
statements: 95,
branches: 75,
functions: 100,
lines: 95,
},
},
coveragePathIgnorePatterns: [
'src/server.ts',
'src/plugins/config.ts',
],
coveragePathIgnorePatterns: ["src/server.ts", "src/plugins/config.ts"],
collectCoverage: true,
coverageReporters: ["lcov", "text"]
}
coverageReporters: ["lcov", "text"],
};
Loading

0 comments on commit 58a37f8

Please sign in to comment.