Skip to content

Commit

Permalink
LPD-37078 - Re-add content and link to example json configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
bryceosterhaus authored and brianchandotcom committed Sep 30, 2024
1 parent 8724e53 commit 5de215b
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
13 changes: 13 additions & 0 deletions modules/_node-scripts/README.markdown
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.
1 change: 0 additions & 1 deletion modules/_node-scripts/README.txt

This file was deleted.

20 changes: 20 additions & 0 deletions modules/_node-scripts/example-vscode-debug-config.json
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"
}

0 comments on commit 5de215b

Please sign in to comment.