Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Mark reported-levels.test.js as skipped in wallaby (#483)
instead of completely excluding it. https://wallabyjs.com/docs/intro/selected-tests.html#test-file-selection
- Loading branch information
Showing
2 changed files
with
9 additions
and
7 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
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 |
---|---|---|
@@ -1,15 +1,16 @@ | ||
'use strict'; | ||
// This is a config file to be able to run as many tests as possible using | ||
// https://wallabyjs.com/ | ||
// usually it wrks without any config, but on of our tests doesn't, so it is excluded | ||
// usually it works without any config, but test/error/reported-levels.test.js | ||
// relies on stacktrace of errors which are not available in instrumented files, | ||
// so it is marked as skipped | ||
|
||
module.exports = { | ||
tests: { | ||
override: (testPatterns) => { | ||
// this test relies on stacktrace of errors which are not available in instrumented files | ||
// they are not "visible" for wallaby, would be nicer to mark them as skipped | ||
testPatterns.push('!test/error/reported-levels.test.js'); | ||
return testPatterns; | ||
hints: { | ||
// https://wallabyjs.com/docs/intro/selected-tests.html#test-file-selection | ||
testFileSelection: { | ||
include: /wallaby:file\.only/, | ||
exclude: /wallaby:file\.skip/, | ||
}, | ||
}, | ||
}; |