Skip to content

Commit

Permalink
refactor: master refactor on project
Browse files Browse the repository at this point in the history
  • Loading branch information
betomossmann committed Mar 21, 2023
1 parent 107176b commit c51e11a
Show file tree
Hide file tree
Showing 309 changed files with 9,816 additions and 4,992 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules
dist
coverage
./data
requirements
.vscode
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
node_modules
dist
coverage
data
!src/data
!tests/data
.vscode
globalConfig.json
4 changes: 2 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
6 changes: 4 additions & 2 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run test:ci
5 changes: 3 additions & 2 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"*.{ts,tsx}": [
"eslint 'src/**' --fix"
"*.ts": [
"eslint . --fix",
"npm run test:staged"
]
}
2 changes: 1 addition & 1 deletion jest-integration-config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const config = require('./jest.config.ts')
const config = require('./jest.config')
config.testMatch = ['**/*.test.ts']
module.exports = config
2 changes: 1 addition & 1 deletion jest-unit-config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const config = require('./jest.config.ts')
const config = require('./jest.config')
config.testMatch = ['**/*.spec.ts']
module.exports = config
10 changes: 4 additions & 6 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
module.exports = {
roots: ['<rootDir>/src'],
collectCoverage: true,
roots: ['<rootDir>/tests'],
collectCoverageFrom: [
'<rootDir>/src/**/*.ts',
'!<rootDir>/src/main/**',
'!**/test/**'
'!<rootDir>/src/main/**'
],
coverageDirectory: 'coverage',
coverageProvider: 'v8',
coverageProvider: 'babel',
testEnvironment: 'node',
preset: '@shelf/jest-mongodb',
watchPathIgnorePatterns: ['globalConfig'],
transform: {
'.+\\.ts$': 'ts-jest'
},
moduleNameMapper: {
'@/tests/(.*)': '<rootDir>/tests/$1',
'@/(.*)': '<rootDir>/src/$1'
}
}
674 changes: 674 additions & 0 deletions license

Large diffs are not rendered by default.

Loading

0 comments on commit c51e11a

Please sign in to comment.