Open stabenfeldt opened 6 years ago
I'm following the guide from https://github.com/Microsoft/TypeScript-React-Native-Starter#adding-a-component but when I run npm test I get this error:
npm test
FAIL src/components/__tests__/Hello.tsx ● Test suite failed to run xx/src/components/__tests__/Hello.tsx: Unexpected token (9:35) 7 | const Hello_1 = require("../Hello"); 8 | it('renders correctly with defaults', () => { > 9 | const hello = enzyme_1.shallow(<Hello_1.default name="World"/>); | ^ 10 | expect(hello.find(react_native_1.Text).render().text()).toEqual("Hello World!"); 11 | });
Any idea what's wrong? My packages.json
I'm following the guide from https://github.com/Microsoft/TypeScript-React-Native-Starter#adding-a-component but when I run
npm test
I get this error:Any idea what's wrong? My packages.json