[Home] >  JavaScript >  Jest snippets (break up please)

Jest snippets (break up please)

beforeAll()

describe('Lorem ipsum dolor sit amet', () => {
let someVariable = null

beforeEach(() => {
someVariable = 'new data ya?'
})

afterEach(() => {
someVariable = null
})
})