-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: master refactor on project
- Loading branch information
1 parent
107176b
commit c51e11a
Showing
309 changed files
with
9,816 additions
and
4,992 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
node_modules | ||
dist | ||
coverage | ||
./data | ||
requirements | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
} | ||
} |
Oops, something went wrong.