you guys are on fire. The apple event inspired you...
# general
a
you guys are on fire. The apple event inspired you guys big time huh. Let’s crowdfund you guys a MBP 2021 with m1 max. 😂
t
hahah
Well I'm living linux desktop life so ship that to frank or jay
a
Hi @thdxr I am trying to override
testMatch
but it says it is not supported:
Copy code
"jest": {
    "testMatch": [
      "**/__tests__/test_cases/**/*"
    ]
}
t
I'll look into if we can support this tomorrow
we matched whatever create react app supports
a
I see, although
testMatch
is listed in the docs: https://docs.serverless-stack.com/working-locally#testing-your-app
a
@thdxr I’m trying to use
modulePathIgnorePatterns
but looks like is not supported. I want to ignore some folders to not be tested.
Also @thdxr this doc doesn’t explain how to use a custom config, in case the attributes are not supported. I’ve tried adding a
jest.config.js
but apparently is not being picked.
t
I can look into supporting into that option. Unfortunately jest doesn't have a good way to support override configs and the package.json approach is what's recommended. It's how create react app works as well
If you want your own config you should use jest directly - it's what I do since I have a monorepo with different packages that I test differently
a
@thdxr ok yes, I would need to do that.
Still getting errors 😞
Testing my stack gets:
Copy code
TypeError: Jest: a transform must export a `process` function.
Running:
npx jest
.
Andad picks my local jest config file.