Theryn Groetken
Theryn Groetken
> Do I need to set up a .swcrc file? Yes - that or inline it like the README implicitly suggests: https://github.com/swc-project/jest#usage ```js module.exports = { transform: { '^.+\\.(t|j)sx?$': ['@swc/jest',...
> What's your input file? Sorry, I don't understand. I'm just running `yarn jest`. Are you asking what the test file itself looks like?
@kdy1 - I just put this together and was able to repro pretty quickly - https://github.com/therynamo/SWCJestRepro
@kdy1 - so sorry about that 🤦 - I forgot to commit my changes 😅 . Try pulling from `master` again now.
@kdy1 - yeah - that file was just an example file name. The edit screen info test in the repo I just linked causes the same error. Were you able...
Yeah - that's the thing - there is no file containing that line. Which is the confusing part - the stack trace just indicates that there was an issue with...
I'm out for the night, but I wonder if it's something in `@testing-library/react-native`. I'll check by writing a different test tomorrow. Thanks again for looking into this!
Actually it looks related to the react native preset https://github.com/dosentmatter/babel-plugin-const-enum/issues/3
> It seems like a bug of @react-native/polyfills Hmm yeah - types should not be in a `js` file - good catch. I can try to look into that -...
Alright - so after I "patch" the `node_modules/@react-native/polyfills/error-guard.js` file to look like so: ```js /** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed...