diff options
Diffstat (limited to 'src/arrow/js/.vscode/launch.json')
-rw-r--r-- | src/arrow/js/.vscode/launch.json | 240 |
1 files changed, 240 insertions, 0 deletions
diff --git a/src/arrow/js/.vscode/launch.json b/src/arrow/js/.vscode/launch.json new file mode 100644 index 000000000..ae72e1f48 --- /dev/null +++ b/src/arrow/js/.vscode/launch.json @@ -0,0 +1,240 @@ +{ + // 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", + "inputs": [ + { + "type": "pickString", + "default": "src", + "id": "TEST_TARGET", + "options": [ + "src", + "apache-arrow", + "ts", + "es5.cjs", + "es5.esm", + "es5.umd", + "es2015.cjs", + "es2015.esm", + "es2015.umd", + "esnext.cjs", + "esnext.esm", + "esnext.umd", + ], + "description": "The JS version + Module format combination to test (or src to test source files)", + }, + { + "type": "command", + "id": "TEST_FILE", + "command": "shellCommand.execute", + "args": { + "cwd": "${workspaceFolder}", + "description": "Select a file to debug", + "command": "./node_modules/.bin/jest --listTests | sed -r \"s@$PWD/test/@@g\"", + } + }, + { + "type": "command", + "id": "TEST_RUNTIME_ARGS", + "command": "shellCommand.execute", + "args": { + "useSingleResult": "true", + "command": "case \"${input:TEST_TARGET}\" in *cjs | *umd | apache-arrow) echo '';; *) echo '--experimental-vm-modules';; esac" + } + }, + ], + "configurations": [ + { + "type": "node", + "request": "launch", + "name": "Debug Gulp Build", + "program": "${workspaceFolder}/node_modules/gulp/bin/gulp.js", + "args": [ + "build", + // Specify we want to debug the "src" target, which won't clean or build -- essentially a "dry-run" of the gulp build + "--target", + "src" + ] + }, + { + "type": "node", + "request": "launch", + "name": "Debug Unit Tests", + "cwd": "${workspaceRoot}", + "console": "integratedTerminal", + "program": "${workspaceFolder}/node_modules/.bin/jest", + "skipFiles": [ + "<node_internals>/**/*.js", + "${workspaceFolder}/node_modules/**/*.js" + ], + "env": { + "NODE_NO_WARNINGS": "1", + "NODE_ENV": "production", + "TEST_DOM_STREAMS": "true", + "TEST_NODE_STREAMS": "true", + }, + "runtimeArgs": ["${input:TEST_RUNTIME_ARGS}"], + "args": [ + "--verbose", + "--runInBand", + "-c", "jestconfigs/jest.${input:TEST_TARGET}.config.js", + "${input:TEST_FILE}" + ] + }, + { + "type": "node", + "request": "launch", + "name": "Debug Integration Tests", + "cwd": "${workspaceRoot}", + "program": "${workspaceFolder}/bin/integration.js", + "skipFiles": [ + "<node_internals>/**/*.js", + "${workspaceFolder}/node_modules/**/*.js" + ], + "env": { + "NODE_NO_WARNINGS": "1", + }, + "args": [ + "--mode", + "VALIDATE" + ] + }, + { + "type": "node", + "request": "launch", + "name": "Debug bin/arrow2csv", + "env": { + "ARROW_JS_DEBUG": "src", + "TS_NODE_CACHE": "false" + }, + "runtimeArgs": [ + "-r", + "ts-node/register" + ], + "console": "integratedTerminal", + "skipFiles": [ + "<node_internals>/**/*.js", + "${workspaceFolder}/node_modules/**/*.js" + ], + "args": [ + "${workspaceFolder}/src/bin/arrow2csv.ts", + "-f", + "./test/data/cpp/stream/simple.arrow" + ] + }, + { + "type": "node", + "request": "launch", + "name": "Debug bin/file-to-stream", + "env": { + "ARROW_JS_DEBUG": "src", + "TS_NODE_CACHE": "false" + }, + "runtimeArgs": [ + "-r", + "ts-node/register" + ], + "skipFiles": [ + "<node_internals>/**/*.js", + "${workspaceFolder}/node_modules/**/*.js" + ], + "args": [ + "${workspaceFolder}/bin/file-to-stream.js", + "./test/data/cpp/file/struct_example.arrow", + "./struct_example-stream-out.arrow", + ] + }, + { + "type": "node", + "request": "launch", + "name": "Debug bin/stream-to-file", + "env": { + "ARROW_JS_DEBUG": "src", + "TS_NODE_CACHE": "false" + }, + "runtimeArgs": [ + "-r", + "ts-node/register" + ], + "skipFiles": [ + "<node_internals>/**/*.js", + "${workspaceFolder}/node_modules/**/*.js" + ], + "args": [ + "${workspaceFolder}/bin/stream-to-file.js", + "./test/data/cpp/stream/struct_example.arrow", + "./struct_example-file-out.arrow", + ] + }, + { + "type": "node", + "request": "launch", + "name": "Debug bin/json-to-arrow", + "env": { + "ARROW_JS_DEBUG": "src", + "TS_NODE_CACHE": "false" + }, + "runtimeArgs": [ + "-r", + "ts-node/register" + ], + "skipFiles": [ + "<node_internals>/**/*.js", + "${workspaceFolder}/node_modules/**/*.js" + ], + "args": [ + "${workspaceFolder}/bin/json-to-arrow.js", + "-j", + "./test/data/json/struct_example.json", + "-a", + "./struct_example-stream-out.arrow", + "-f", + "stream" + ] + }, + { + "type": "node", + "request": "launch", + "name": "Debug bin/print-buffer-alignment", + "env": { + "ARROW_JS_DEBUG": "src", + "TS_NODE_CACHE": "false" + }, + "runtimeArgs": [ + "-r", + "ts-node/register" + ], + "skipFiles": [ + "<node_internals>/**/*.js", + "${workspaceFolder}/node_modules/**/*.js" + ], + "args": [ + "${workspaceFolder}/bin/print-buffer-alignment.js", + "./test/data/cpp/stream/struct_example.arrow" + ] + },{ + "type": "node", + "name": "vscode-jest-tests", + "request": "launch", + "console": "integratedTerminal", + "internalConsoleOptions": "neverOpen", + "disableOptimisticBPs": true, + "cwd": "${workspaceFolder}", + "program": "${workspaceFolder}/node_modules/.bin/jest", + "runtimeArgs": [ + "--experimental-vm-modules" + ], + "args": [ + "--runInBand", + "--watchAll=false" + ], + "env": { + "NODE_NO_WARNINGS": "1", + "TEST_DOM_STREAMS": "true", + "TEST_NODE_STREAMS": "true", + "TEST_TS_SOURCE": "true" + }, + } + ] +} |