diff --git a/.gitignore b/.gitignore index 211717b7..d7c7c711 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,6 @@ node_modules/ dist/ tsc-out/ .eslintcache -.vscode/ +.vscode/* +!.vscode/launch.json *.tgz diff --git a/.npmignore b/.npmignore index c5b178a4..77d4e578 100644 --- a/.npmignore +++ b/.npmignore @@ -3,3 +3,4 @@ test types tsconfig.json *.sh +.vscode diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000..504a19f3 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,50 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Test262 (edit subset in launch.json)", + "request": "launch", + "type": "node", + "runtimeExecutable": "npm", + "runtimeArgs": ["run", "test262"], + "console": "integratedTerminal", + "internalConsoleOptions": "neverOpen", + "autoAttachChildProcesses": true, + "env": { + // Replace the glob pattern below with tests you want to debug. + // Comment out to run all tests, but will be very slow! + "TESTS": "PlainYearMonth/prototype/subtract/*.js", + // Extends timeouts to 1 hour (from 10 seconds default) so you can + // debug a test stopped at a breakpoint before the runner kills it. + "TIMEOUT": "3600000" + } + }, + { + "name": "Test262 (current file)", + "request": "launch", + "type": "node", + "runtimeExecutable": "npm", + "runtimeArgs": ["run", "test262"], + "console": "integratedTerminal", + "internalConsoleOptions": "neverOpen", + "autoAttachChildProcesses": true, + "env": { + // Only test the currently-opened file in the IDE + "TESTS": "${file}", + // Extends timeouts to 1 hour (from 10 seconds default) so you can + // debug a test stopped at a breakpoint before the runner kills it. + "TIMEOUT": "3600000" + } + }, + { + "name": "Demitasse tests", + "request": "launch", + "type": "node", + "runtimeExecutable": "npm", + "runtimeArgs": ["test"], + "console": "integratedTerminal", + "internalConsoleOptions": "neverOpen", + "autoAttachChildProcesses": true, + }, + ] +}