Skip to content

Commit

Permalink
Merge pull request #3016 from dependabot/feelepxyz/js-debugging-fixes
Browse files Browse the repository at this point in the history
Fix JS debugging in vscode
  • Loading branch information
feelepxyz authored Jan 20, 2021
2 parents a926cee + afb80d9 commit 24c1088
Show file tree
Hide file tree
Showing 8 changed files with 66 additions and 27 deletions.
50 changes: 49 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,55 @@
"${input:package_manager}",
"${input:repository}"
]
}
},
{
"type": "node",
"name": "vscode-jest-tests",
"request": "launch",
"program": "${workspaceFolder}/npm_and_yarn/helpers/node_modules/jest/bin/jest.js",
"args": [
"--runInBand",
"-c",
"${workspaceFolder}/npm_and_yarn/helpers/jest.config.js"
],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true
},
{
"type": "node",
"name": "Run jest tests (watch)",
"request": "launch",
"program": "${workspaceFolder}/npm_and_yarn/helpers/node_modules/jest/bin/jest.js",
"args": [
"--runInBand",
"--watchAll",
"-c",
"${workspaceFolder}/npm_and_yarn/helpers/jest.config.js"
],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true
},
{
"type": "node",
"name": "Run jest tests on opened file (watch)",
"request": "launch",
"program": "${workspaceFolder}/npm_and_yarn/helpers/node_modules/jest/bin/jest.js",
"args": [
"${fileBasenameNoExtension}",
"--runInBand",
"--watchAll",
"-c",
"${workspaceFolder}/npm_and_yarn/helpers/jest.config.js"
],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true
},
],
"inputs": [
{
Expand Down
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"files.associations": {
"Dockerfile.*": "dockerfile"
}
},
"jest.pathToJest": "${workspaceFolder}/npm_and_yarn/helpers/node_modules/.bin/jest",
"jest.pathToConfig": "${workspaceFolder}/npm_and_yarn/helpers/jest.config.js"
}
5 changes: 3 additions & 2 deletions bin/dry-run.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
require "json"
require "byebug"
require "logger"
require "dependabot/logger"

Dependabot.logger = Logger.new($stdout)

require "dependabot/file_fetchers"
require "dependabot/file_parsers"
Expand All @@ -86,8 +89,6 @@
require "dependabot/python"
require "dependabot/terraform"

Dependabot.logger = Logger.new($stdout)

# GitHub credentials with write permission to the repo you want to update
# (so that you can create a new branch, commit and pull request).
# If using a private registry it's also possible to add details of that here.
Expand Down
5 changes: 1 addition & 4 deletions npm_and_yarn/helpers/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{
"plugins": [
"extends": [
"prettier"
],
"rules": {
"prettier/prettier": "error"
},
"env": {
"node": true
},
Expand Down
1 change: 1 addition & 0 deletions npm_and_yarn/helpers/build
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ cp -r \
"$helpers_dir/test" \
"$helpers_dir/run.js" \
"$helpers_dir/.eslintrc" \
"$helpers_dir/jest.config.js" \
"$helpers_dir/package.json" \
"$helpers_dir/yarn.lock" \
"$install_dir"
Expand Down
4 changes: 4 additions & 0 deletions npm_and_yarn/helpers/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
verbose: true,
testEnvironment: "node",
};
2 changes: 1 addition & 1 deletion npm_and_yarn/helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"devDependencies": {
"eslint": "^7.18.0",
"eslint-plugin-prettier": "^3.3.1",
"eslint-config-prettier": "^7.2.0",
"jest": "^26.6.3",
"prettier": "^2.2.1",
"rimraf": "^3.0.2"
Expand Down
22 changes: 4 additions & 18 deletions npm_and_yarn/helpers/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2263,12 +2263,10 @@ escodegen@^1.14.1:
optionalDependencies:
source-map "~0.6.1"

eslint-plugin-prettier@^3.3.1:
version "3.3.1"
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-3.3.1.tgz#7079cfa2497078905011e6f82e8dd8453d1371b7"
integrity sha512-Rq3jkcFY8RYeQLgk2cCwuc0P7SEFwDravPhsJZOQ5N4YI4DSg50NyqJ/9gdZHzQlHf8MvafSesbNJCcP/FF6pQ==
dependencies:
prettier-linter-helpers "^1.0.0"
eslint-config-prettier@^7.2.0:
version "7.2.0"
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-7.2.0.tgz#f4a4bd2832e810e8cc7c1411ec85b3e85c0c53f9"
integrity sha512-rV4Qu0C3nfJKPOAhFujFxB7RMP+URFyQqqOZW9DMRD7ZDTFyjaIlETU3xzHELt++4ugC0+Jm084HQYkkJe+Ivg==

eslint-scope@^5.1.1:
version "5.1.1"
Expand Down Expand Up @@ -2536,11 +2534,6 @@ fast-deep-equal@^3.1.1:
resolved "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525"
integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==

fast-diff@^1.1.2:
version "1.2.0"
resolved "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz#73ee11982d86caaf7959828d519cfe927fac5f03"
integrity sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==

fast-json-stable-stringify@^2.0.0:
version "2.1.0"
resolved "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633"
Expand Down Expand Up @@ -6106,13 +6099,6 @@ preserve@^0.2.0:
resolved "https://registry.npmjs.org/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"
integrity sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=

prettier-linter-helpers@^1.0.0:
version "1.0.0"
resolved "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b"
integrity sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==
dependencies:
fast-diff "^1.1.2"

prettier@^2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5"
Expand Down

0 comments on commit 24c1088

Please sign in to comment.