Eastern
a minimal & blazing fast BDD Framework for ESM Modules
Installation
npm install eastern eastern-cli --global# or yarn global add eastern eastern-cli
The eastern
command defines global.it
, global.describe
.
And find and run test.mjs
/ test/**/*.mjs
.
eastern# # 0 passing (5 ms)
API
it.setOptions
/ setOptions
it;
Specs of the same level are executed in parallel, and there is a possibility that hooks conflict. In that case, please set the
concurrency
of that level to 1 and execute it in series. usingit.setOptions
it(title, context)
;
✓ foo (1 ms)
1 passing (7 ms)
it(title)
, it.skip(title)
;it;
- foo
- bar
0 passing (6 ms)
2 pending
it.only
;it;it;
- foo
✓ bar (2 ms)
✓ bar (2 ms)
1 passing (8 ms)
1 pending
it.before
; it; it; it; ;;;
foo
bar
baz
✓ beep (1 ms)
✓ beep (1 ms)
✓ beep (1 ms)
3 passing (26 ms)
it.after
; it; it; it; ;;;
✓ foo (1 ms)
✓ foo (2 ms)
✓ foo (2 ms)
bar
baz
beep
3 passing (27 ms)
it.beforeEach
it;it;;;;
foo
✓ bar (8 ms)
foo
✓ bar (7 ms)
foo
✓ bar (5 ms)
3 passing (28 ms)
it.afterEach
; it;it;;;;
bar
✓ foo (1 ms)
bar
✓ foo (0 ms)
bar
✓ foo (0 ms)
3 passing (28 ms)
describe(title, fn(it, describe){})
describe(title)
, describe.skip(title)
; it; it; it; it; it; ; it; ; it; it; ; it; it; it; it; ; it; ; it; it; ; ; ););
1
1-before
- 1-1
- 1-2
- 1-notonly-1
1-beforeEach
1-afterEach
✓ 1-only-1 (7 ms)
1-beforeEach
1-afterEach
✓ 1-only-2 (6 ms)
- 2
3
3-before
- 3-1
- 3-2
- 3-notonly-1
3-beforeEach
3-afterEach
✓ 3-only-1 (7 ms)
3-beforeEach
3-afterEach
✓ 3-only-2 (6 ms)
- 4
5
- 5
3-after
1-after
4 passing (39 ms)
9 pending
TEST FAILING
License
MIT