{"action":"closed","issue":{"url":"https://api.github.com/repos/philcockfield/ui-harness/issues/58","repository_url":"https://api.github.com/repos/philcockfield/ui-harness","labels_url":"https://api.github.com/repos/philcockfield/ui-harness/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/philcockfield/ui-harness/issues/58/comments","events_url":"https://api.github.com/repos/philcockfield/ui-harness/issues/58/events","html_url":"https://github.com/philcockfield/ui-harness/issues/58","id":140348826,"number":58,"title":"Get working with Meteor + React?","user":{"login":"jackjwilliams","id":1746015,"avatar_url":"https://avatars.githubusercontent.com/u/1746015?v=3","gravatar_id":"","url":"https://api.github.com/users/jackjwilliams","html_url":"https://github.com/jackjwilliams","followers_url":"https://api.github.com/users/jackjwilliams/followers","following_url":"https://api.github.com/users/jackjwilliams/following{/other_user}","gists_url":"https://api.github.com/users/jackjwilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/jackjwilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackjwilliams/subscriptions","organizations_url":"https://api.github.com/users/jackjwilliams/orgs","repos_url":"https://api.github.com/users/jackjwilliams/repos","events_url":"https://api.github.com/users/jackjwilliams/events{/privacy}","received_events_url":"https://api.github.com/users/jackjwilliams/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-12T05:29:17Z","updated_at":"2016-03-13T05:51:15Z","closed_at":"2016-03-13T05:51:15Z","body":"I love the idea behind this and wanted to get this working with Meteor + React, starting from the simple-todos-react tutorial from Meteor. But I'm having a difficult time. Basically I did the following:\r\n\r\nmeteor create simple-todos-react\r\n... follow tutorial ...\r\nmeteor add react\r\n... create Task.jsx ...\r\n\r\nAdd custom folders specs, with index.js:\r\n\r\n```\r\ndescribe(\"Todos React\", function(){\r\n    require(\"./Task.spec\");\r\n});\r\n```\r\n\r\nCreate Task.spec.jsx (shell - coming from uiharness starter)\r\n\r\n```\r\nimport React from \"react\";\r\nimport Task from \"../Task\";\r\n\r\nconst LOREM = \"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\";\r\n\r\ndescribe('Task', function(){\r\n    this.header(`## Task`);\r\n    \r\n    before(() => {\r\n    // Runs when the Suite loads.\r\n    // Use this to load your component-under-test.\r\n        this.component(<Task />);\r\n    });\r\n    \r\n    \r\n    it('reload', () => {\r\n        this.component(<Task/>); \r\n    });\r\n});\r\n```\r\n\r\nnpm init in base folder, package.json as follows:\r\n\r\n```\r\n{\r\n  \"name\": \"simple-todos-react\",\r\n  \"version\": \"1.0.0\",\r\n  \"description\": \"None\",\r\n  \"main\": \"index.js\",\r\n  \"dependencies\": {},\r\n  \"devDependencies\": {\r\n    \"ui-harness\": \"^3.7.1\",\r\n  },\r\n  \"scripts\": {\r\n    \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\",\r\n    \"start\": \"node ./node_modules/ui-harness/start --entry=./specs\"\r\n  },\r\n  \"author\": \"\",\r\n  \"license\": \"ISC\"\r\n}\r\n```\r\n\r\nBut I continue to get the following error when running npm start:\r\n\r\n```\r\nUnhandled rejection SyntaxError: C:/Projects/meteor/simple-todos-react/specs/Task.spec.jsx: Unexpected token (12:23)\r\n  10 |     // Runs when the Suite loads.\r\n  11 |     // Use this to load your component-under-test.\r\n> 12 |         this.component(<Task />);\r\n     |                        ^\r\n  13 |     });\r\n  14 |\r\n  15 |\r\n    at Parser.pp.raise (C:\\Projects\\meteor\\simple-todos-react\\node_modules\\babylon\\index.js:1378:13)\r\n    at Parser.pp.unexpected (C:\\Projects\\meteor\\simple-todos-react\\node_modules\\babylon\\index.js:2817:8)\r\n    at Parser.pp.parseExprAtom (C:\\Projects\\meteor\\simple-todos-react\\node_modules\\babylon\\index.js:749:12)\r\n    at Parser.pp.parseExprSubscripts (C:\\Projects\\meteor\\simple-todos-react\\node_modules\\babylon\\index.js:504:19)\r\n    at Parser.pp.parseMaybeUnary (C:\\Projects\\meteor\\simple-todos-react\\node_modules\\babylon\\index.js:484:19)\r\n    at Parser.pp.parseExprOps (C:\\Projects\\meteor\\simple-todos-react\\node_modules\\babylon\\index.js:415:19)\r\n    at Parser.pp.parseMaybeConditional (C:\\Projects\\meteor\\simple-todos-react\\node_modules\\babylon\\index.js:397:19)\r\n    at Parser.pp.parseMaybeAssign (C:\\Projects\\meteor\\simple-todos-react\\node_modules\\babylon\\index.js:360:19)\r\n    at Parser.pp.parseExprListItem (C:\\Projects\\meteor\\simple-todos-react\\node_modules\\babylon\\index.js:1206:16)\r\n    at Parser.pp.parseCallExpressionArguments (C:\\Projects\\meteor\\simple-todos-react\\node_modules\\babylon\\index.js:580:20)\r\n    at Parser.pp.parseSubscripts (C:\\Projects\\meteor\\simple-todos-react\\node_modules\\babylon\\index.js:543:29)\r\n    at Parser.pp.parseExprSubscripts (C:\\Projects\\meteor\\simple-todos-react\\node_modules\\babylon\\index.js:514:15)\r\n    at Parser.pp.parseMaybeUnary (C:\\Projects\\meteor\\simple-todos-react\\node_modules\\babylon\\index.js:484:19)\r\n    at Parser.pp.parseExprOps (C:\\Projects\\meteor\\simple-todos-react\\node_modules\\babylon\\index.js:415:19)\r\n    at Parser.pp.parseMaybeConditional (C:\\Projects\\meteor\\simple-todos-react\\node_modules\\babylon\\index.js:397:19)\r\n    at Parser.pp.parseMaybeAssign (C:\\Projects\\meteor\\simple-todos-react\\node_modules\\babylon\\index.js:360:19)\r\n```\r\n"}}