-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: skip before and after hooks when no tests
- Loading branch information
1 parent
7111801
commit 2c5ca4f
Showing
5 changed files
with
395 additions
and
291 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { suite, assert, test as _test } from '../../src/taps/index.js' | ||
|
||
let test = suite('suite1') | ||
|
||
test.before(() => { | ||
console.log('before') | ||
}) | ||
|
||
test.after(() => { | ||
console.log('after') | ||
}) | ||
|
||
test('test1', () => { | ||
assert.equal(3, 3) | ||
}) | ||
|
||
test = suite('suite2') | ||
|
||
test.before(() => { | ||
console.log('before') | ||
}) | ||
|
||
test.after(() => { | ||
console.log('after') | ||
}) | ||
|
||
test.skip('test1', () => { | ||
assert.equal(3, 3) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.