I am migrating existing tests to Jest.
Can I use before instead of beforeAll in Jest?
What I'd do is in jest.config.js,
module.exports = {
...
globals: {
before: beforeAll,
},
};
But how can I import beforeAll? require('@jest/globals') raises:
Error: Do not import `@jest/globals` outside of the Jest test environment