Skip to content

Commit

Permalink
Provide global aliases for skip (x*) and only (f*) (#69)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Nestler <michael.nestler@redbull.com>
Fixes #65
  • Loading branch information
swcm-mnestler authored Jan 26, 2023
1 parent 10ba450 commit 07fbf6b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/global-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ const jestMock = new mock.ModuleMocker(globalThis);
globalThis.expect = expect;
globalThis.test = circus.test;
globalThis.it = circus.it;
globalThis.xit = globalThis.xtest = circus.test.skip;
globalThis.fit = circus.test.only;
globalThis.describe = circus.describe;
globalThis.xdescribe = circus.describe.skip;
globalThis.fdescribe = circus.describe.only;
globalThis.beforeAll = circus.beforeAll;
globalThis.afterAll = circus.afterAll;
globalThis.beforeEach = circus.beforeEach;
Expand Down

0 comments on commit 07fbf6b

Please sign in to comment.