forked from liferay/liferay-portal
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LPD-37078 - Re-add content and link to example json configuration
- Loading branch information
1 parent
8724e53
commit 5de215b
Showing
3 changed files
with
33 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Liferay `node-scripts` | ||
|
||
This document exists to contain an assortment of knowledge about `node-scripts`. | ||
|
||
## `node-scripts test` | ||
|
||
### Setting up Jest debugging in VS Code [LPD-37078](https://liferay.atlassian.net/browse/LPD-37078) | ||
|
||
Add a launch configuration for Jest in VS Code. Quickly do this by opening command palette and searching for `Debug: Add configuration...`. This will add a local configuration to your vscode workspace and should not be committed to git. | ||
|
||
Then use the [example-vscode-debug-config.json](./example-vscode-debug-config.json) as your configuration. | ||
|
||
Now you can navigate to your test file and run the vscode debugger. |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"args": [ | ||
"test", | ||
"${fileBasenameNoExtension}" | ||
], | ||
"console": "integratedTerminal", | ||
"cwd": "${fileDirname}", | ||
"env": { | ||
"NODE_ENV": "test" | ||
}, | ||
"name": "Liferay node-scripts test: current file", | ||
"request": "launch", | ||
"runtimeExecutable": "yarn", | ||
"type": "node" | ||
} | ||
], | ||
"version": "0.2.0" | ||
} |