{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/vue-cli/issues/2694","repository_url":"https://api.github.com/repos/vuejs/vue-cli","labels_url":"https://api.github.com/repos/vuejs/vue-cli/issues/2694/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue-cli/issues/2694/comments","events_url":"https://api.github.com/repos/vuejs/vue-cli/issues/2694/events","html_url":"https://github.com/vuejs/vue-cli/issues/2694","id":368031319,"node_id":"MDU6SXNzdWUzNjgwMzEzMTk=","number":2694,"title":"VSCode profile for debugging Mocha tests","user":{"login":"Stoom","id":5356206,"node_id":"MDQ6VXNlcjUzNTYyMDY=","avatar_url":"https://avatars3.githubusercontent.com/u/5356206?v=4","gravatar_id":"","url":"https://api.github.com/users/Stoom","html_url":"https://github.com/Stoom","followers_url":"https://api.github.com/users/Stoom/followers","following_url":"https://api.github.com/users/Stoom/following{/other_user}","gists_url":"https://api.github.com/users/Stoom/gists{/gist_id}","starred_url":"https://api.github.com/users/Stoom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stoom/subscriptions","organizations_url":"https://api.github.com/users/Stoom/orgs","repos_url":"https://api.github.com/users/Stoom/repos","events_url":"https://api.github.com/users/Stoom/events{/privacy}","received_events_url":"https://api.github.com/users/Stoom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-09T03:55:27Z","updated_at":"2018-10-09T06:51:13Z","closed_at":null,"author_association":"NONE","body":"### Version\r\n3.0.1\r\n\r\n### Reproduction link\r\n[n/a](n/a)\r\n\r\n\r\n\r\n### Node and OS info\r\nNode 9.5.0 / yarn 1.3.2 / Windows 10\r\n\r\n### Steps to reproduce\r\nUse the following `launch.config` in vscode:\r\n\r\n```json\r\n{\r\n    // Use IntelliSense to learn about possible attributes.\r\n    // Hover to view descriptions of existing attributes.\r\n    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387\r\n    \"version\": \"0.2.0\",\r\n    \"configurations\": [\r\n        {\r\n            \"type\": \"node\",\r\n            \"request\": \"launch\",\r\n            \"name\": \"Mocha All\",\r\n            \"program\": \"${workspaceFolder}/node_modules/@vue/cli-service/bin/vue-cli-service.js\",\r\n            \"args\": [\r\n                \"test:unit\",\r\n                \"-r ${workspaceFolder}\\\\tests\\\\setup.js\"\r\n            ],\r\n            \"console\": \"integratedTerminal\",\r\n            \"internalConsoleOptions\": \"neverOpen\"\r\n        },\r\n    ]\r\n}\r\n```\r\n\r\n### What is expected?\r\nAll unit tests execute after `.vue` files are transpiled\r\n\r\n### What is actually happening?\r\nThe following error is returned:\r\n```shell\r\nPS C:\\Users\\user\\Projects\\foobar> cd 'c:\\Users\\user\\Projects\\foobar'; & 'C:\\Program Files\\nodejs\\node.exe' '--inspect-brk=18708' 'node_modules\\@vue\\cli-service\\bin\\vue-cli-service.js' 'test:unit' '-r C:\\Users\\user\\Projects\\foobar\\tests\\setup.js'\r\n\r\nDebugger listening on ws://127.0.0.1:18708/9fd3beb8-b722-4d6e-ba63-83dff9a645b8\r\nFor help see https://nodejs.org/en/docs/inspector\r\nDebugger attached.\r\nmodule.js:557\r\n    throw err;\r\n    ^\r\n\r\nError: Cannot find module ' C:\\Users\\user\\Projects\\foobar\\tests\\setup.js'\r\n    at Function.Module._resolveFilename (module.js:555:15)\r\n    at Function._resolveFilename (C:\\Users\\user\\Projects\\foobar\\node_modules\\mocha-webpack\\lib\\util\\registerRequireHook.js:44:34)\r\n    at Function.Module._load (module.js:482:25)\r\n    at Module.require (module.js:604:17)\r\n    at require (internal/module.js:11:18)\r\n    at C:\\Users\\user\\Projects\\foobar\\node_modules\\mocha-webpack\\lib\\cli\\index.js:65:3\r\n    at Array.forEach (<anonymous>)\r\n    at Object.<anonymous> (C:\\Users\\user\\Projects\\foobar\\node_modules\\mocha-webpack\\lib\\cli\\index.js:64:17)\r\n    at Module._compile (module.js:660:30)\r\n    at Object.Module._extensions..js (module.js:671:10)\r\n ERROR  mocha-webpack exited with code 1.\r\nWaiting for the debugger to disconnect...\r\n```\r\n\r\n<!-- generated by vue-issues. DO NOT REMOVE -->"},"comment":{"url":"https://api.github.com/repos/vuejs/vue-cli/issues/comments/428080255","html_url":"https://github.com/vuejs/vue-cli/issues/2694#issuecomment-428080255","issue_url":"https://api.github.com/repos/vuejs/vue-cli/issues/2694","id":428080255,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODA4MDI1NQ==","user":{"login":"LinusBorg","id":1444526,"node_id":"MDQ6VXNlcjE0NDQ1MjY=","avatar_url":"https://avatars3.githubusercontent.com/u/1444526?v=4","gravatar_id":"","url":"https://api.github.com/users/LinusBorg","html_url":"https://github.com/LinusBorg","followers_url":"https://api.github.com/users/LinusBorg/followers","following_url":"https://api.github.com/users/LinusBorg/following{/other_user}","gists_url":"https://api.github.com/users/LinusBorg/gists{/gist_id}","starred_url":"https://api.github.com/users/LinusBorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinusBorg/subscriptions","organizations_url":"https://api.github.com/users/LinusBorg/orgs","repos_url":"https://api.github.com/users/LinusBorg/repos","events_url":"https://api.github.com/users/LinusBorg/events{/privacy}","received_events_url":"https://api.github.com/users/LinusBorg/received_events","type":"User","site_admin":false},"created_at":"2018-10-09T06:51:13Z","updated_at":"2018-10-09T06:51:13Z","author_association":"MEMBER","body":"Please provide a runnable reproduction.\r\n\r\nThe default setup doesn't come with a `setup.js` file and we are not gonna guess what you did wrong."}}
{"actor":{"display_login":"LinusBorg"}}