Skip to content

Commit

Permalink
Feat: Tests Added
Browse files Browse the repository at this point in the history
  • Loading branch information
Zakariya1057 committed Aug 15, 2023
1 parent 1965337 commit cc05cfa
Show file tree
Hide file tree
Showing 36 changed files with 1,576 additions and 399 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish Package
on:
push:
branches:
- master
- main

jobs:
build:
Expand Down
26 changes: 16 additions & 10 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License (CC BY-NC-ND 4.0)
MIT License with Non-Commercial Clause

Copyright (c) [Year] [Your Full Name or Organization Name]
Copyright (c) 2023 Zakariya Mohummed

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, and distribute, provided that:
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, and publish the Software, subject to the following conditions:

- Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- NonCommercial — You may not use the material for commercial purposes.
- NoDerivatives — If you remix, transform, or build upon the material, you may not distribute the modified material.
1. The Software may not be used for commercial purposes.
2. The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

For the full license text, please visit:
https://creativecommons.org/licenses/by-nc-nd/4.0/
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
23 changes: 16 additions & 7 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,32 @@
import type { Config } from '@jest/types'

const config: Config.InitialOptions = {
roots: ['<rootDir>/src'],
roots: ['<rootDir>/tests'],
verbose: true,
modulePaths: ['<rootDir>'],
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
moduleNameMapper: {
'@src/(.*)$': '<rootDir>/src/$1',
'^@src/(.*)$': '<rootDir>/src/$1',
'^@entities/(.*)$': '<rootDir>/src/entities/$1',
'^@libs/(.*)$': '<rootDir>/src/libs/$1',
'^@utils/(.*)$': '<rootDir>/src/utils/$1',
'^@providers/(.*)$': '<rootDir>/src/providers/$1',
'^@tests/(.*)$': '<rootDir>/tests/$1',
},
coverageReporters: ['text'],
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!src/**/register.ts'],
collectCoverageFrom: [
'src/**/*.{ts,tsx}',
'!src/providers/**/*.{ts,tsx}',
'!src/entities/**/*.{ts,tsx}',
],
coverageThreshold: {
global: {
branches: 50,
functions: 50,
lines: 50,
statements: 50,
branches: 87,
functions: 89,
lines: 96,
statements: 97,
},
},
}
Expand Down
Loading

0 comments on commit cc05cfa

Please sign in to comment.