Skip to content

Commit

Permalink
Added config for VSCode's debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
alitnk committed Oct 16, 2021
1 parent 7fafdf2 commit 2e9db2e
Show file tree
Hide file tree
Showing 5 changed files with 1,122 additions and 35 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ node_modules
npm-debug.log*
yarn-debug.log*
yarn-error.log*
*.log
*.log

# Coverage files
/coverage
16 changes: 16 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Debug Jest Tests",
"type": "node",
"request": "launch",
"runtimeArgs": ["--inspect-brk", "${workspaceRoot}/node_modules/.bin/jest", "--runInBand"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
}
]
}
9 changes: 9 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$',
testPathIgnorePatterns: ['/lib/', '/node_modules/'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
collectCoverage: true,
};
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,17 @@
"devDependencies": {
"@size-limit/preset-small-lib": "^5.0.5",
"@types/crypto-js": "^4.0.2",
"@types/jest": "^27.0.2",
"@types/node": "^16.10.3",
"@types/uuid": "^8.3.1",
"husky": "^7.0.2",
"jest": "^27.2.5",
"np": "^7.5.0",
"size-limit": "^5.0.5",
"ts-jest": "^27.0.7",
"tsdx": "^0.14.1",
"tslib": "^2.3.1",
"typescript": "^4.4.3"
"typescript": "^4.4.4"
},
"dependencies": {
"axios": "^0.22.0",
Expand Down
Loading

0 comments on commit 2e9db2e

Please sign in to comment.