Sergii Stotskyi

Results 239 comments of Sergii Stotskyi

You can generate a hash in `transform` function and attach it to the document. I did this and it works

Jest is a rewritten version of jasmine :) that’s why they have completely behavior. The actual error is not clear for me. Is there any message?

Ah I see. For a long time jest defined global jasmine variable maybe it was removed finally))

what is your version of jest?

just checked on [email protected] everything works fine. all tests in the repo pass. Also released a patch version with updates to the dependencies

you can actually clone this repo, try to update jest and run `npm run test.jest-ui` if it fails then I'll investigate. Will be able to look at it tomorrow only

I guess, you also need to use `npm run build`, tests are run on bundled files

Ok. Thanks. I’ll check it

I think the issue is that you are trying to import it too early. At that stage `global.jasmine` doesn't exist. I think CRA puts `src/setupTests` into https://jestjs.io/docs/en/configuration#setupfiles-array but bdd-lazy-var needs...

just try to do `console.log(global.beforeAll)` if it's undefined, than my assumption is correct