Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Project to Latest Dependencies #7

Merged
merged 8 commits into from
Jun 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
/dist
/tmp
/out-tsc
/compiled

# dependencies
/node_modules
Expand Down
38 changes: 26 additions & 12 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,35 @@
"version": "0.2.0",
"configurations": [
{
"name": "Tests",
"name": "Tests - Current File",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/node_modules/jest/bin/jest.js",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"sourceMaps": true,
"runtimeArgs": [
"-i"
"args": [
"${fileBasenameNoExtension}",
"--config",
"jest.config.js"
],
"env": {
"NODE_ENV": "development"
},
"outFiles": [
"${workspaceRoot}/dist/**/*"
],
"cwd": "${workspaceRoot}"
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
"windows": {
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
}
},
{
"type": "node",
"request": "launch",
"name": "Test - All Files",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": ["--runInBand"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
"windows": {
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
}
}
]
}
}
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@
]
}
]
}
}
22 changes: 22 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/**
* @type {Partial<jest.InitialOptions>}
*/
const config = {
preset: 'ts-jest',
rootDir: '.',
testEnvironment: 'node',
testMatch: [
'<rootDir>/src/**/?(*.)+(spec|test).ts?(x)',
],
testPathIgnorePatterns: ['dist', 'src/models'],
coverageThreshold: {
global: {
branches: 50,
functions: 50,
lines: 50,
statements: 50,
},
}
}

module.exports = config
Loading