acceptable-fall-11897
10/27/2022, 8:52 PMcuddly-kitchen-97815
10/27/2022, 8:52 PMcuddly-kitchen-97815
10/27/2022, 8:53 PMacceptable-fall-11897
10/27/2022, 8:53 PMcuddly-kitchen-97815
10/27/2022, 8:53 PMdescribe('test', ()=>{
it('tests something', ()=>{
//test
}
}acceptable-fall-11897
10/27/2022, 8:54 PMcuddly-kitchen-97815
10/27/2022, 8:54 PMit() statements, we can also have before() and after() hooks, which perform actions before or after all of the it() statementscuddly-kitchen-97815
10/27/2022, 8:55 PMbeforeEach() and afterEach() that trigger before or after each individual it() statement instead of before or after all of them in a describe() statementacceptable-fall-11897
10/27/2022, 8:55 PMacceptable-fall-11897
10/27/2022, 8:55 PMcuddly-kitchen-97815
10/27/2022, 8:56 PMbefore() hooks unique to that test's required preconditionsacceptable-fall-11897
10/27/2022, 8:58 PMcuddly-kitchen-97815
10/27/2022, 8:58 PMacceptable-fall-11897
10/27/2022, 8:58 PMacceptable-fall-11897
10/27/2022, 8:59 PMcuddly-kitchen-97815
10/27/2022, 8:59 PMcuddly-kitchen-97815
10/27/2022, 8:59 PMacceptable-fall-11897
10/27/2022, 8:59 PMcuddly-kitchen-97815
10/27/2022, 9:00 PMcy commands and copy and paste them into the before() hook for the other testscuddly-kitchen-97815
10/27/2022, 9:01 PM