I’m having trouble running `yarn test` again :conf...
# help
s
I’m having trouble running
yarn test
again 😕 it just hangs, and the node process starts eating up CPU
a
I hate jest.
Can’t get it to work 😞
So unreliable.
s
I’ve never had a problem with it, ever
a
I always had with serverless, even with SLS configs.
Hard to configure, IMO.
s
searching on StackOverflow, seems like this is a very common issue
I mean, I’m going to hate jest if it continues to not function properly
a
Haha, welcome to the club.
s
do you use mocha?
a
No, I want to, but I have this topic blocked until getting jest to work properly.
s
I wonder if mocha has a ‘watch’ mode
it’s nothing with my system, because Jest runs just fine in my Vue project
f
Could this be some concurrency issue? I wonder if Vue has a specific default jest config. @thdxr was looking into jest config side of things. Let me loop him in and see if we can do something here.
s
not sure if Vue ships with a default jest config.. this is mine, though:
Copy code
module.exports = {
  preset: '@vue/cli-plugin-unit-jest/presets/typescript-and-babel',
  testMatch: ['**/src/**/?(*.)+(spec|test).[jt]s?(x)'],
};
not much to it