Skip to content

Commit

Permalink
chore: Mark reported-levels.test.js as skipped in wallaby (#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
karfau committed Mar 20, 2023
1 parent 16087a0 commit 38c7da5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions test/error/reported-levels.test.js
@@ -1,4 +1,5 @@
'use strict';
// wallaby:file.skip since stacktrace detection is not working in instrumented files

const { LINE_TO_ERROR_INDEX, REPORTED } = require('./reported');
const { getTestParser } = require('../get-test-parser');
Expand Down
15 changes: 8 additions & 7 deletions wallaby.js
@@ -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/,
},
},
};

0 comments on commit 38c7da5

Please sign in to comment.