mirror of
https://github.com/nodejs/node.git
synced 2025-04-28 05:25:19 +00:00
tools: enable linter in test/fixtures/source-map/output
PR-URL: https://github.com/nodejs/node/pull/57700 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
caf478b72e
commit
87f8d3c8de
@ -62,6 +62,14 @@ export default [
|
||||
'!test/fixtures/console',
|
||||
'!test/fixtures/errors',
|
||||
'!test/fixtures/eval',
|
||||
'!test/fixtures/source-map',
|
||||
'test/fixtures/source-map/*',
|
||||
'!test/fixtures/source-map/output',
|
||||
...filterFilesInDir(
|
||||
'test/fixtures/source-map/output',
|
||||
// Filtering tsc output files (i.e. if there a foo.ts, we ignore foo.js):
|
||||
(f, _, files) => f.endsWith('js') && files.includes(f.replace(/(\.[cm]?)js$/, '$1ts')),
|
||||
),
|
||||
'!test/fixtures/test-runner',
|
||||
'test/fixtures/test-runner/*',
|
||||
'!test/fixtures/test-runner/output',
|
||||
|
@ -9,7 +9,7 @@ Error.stackTraceLimit = 5;
|
||||
assert.strictEqual(typeof Error.prepareStackTrace, 'function');
|
||||
const defaultPrepareStackTrace = Error.prepareStackTrace;
|
||||
Error.prepareStackTrace = (error, trace) => {
|
||||
trace = trace.filter(it => {
|
||||
trace = trace.filter((it) => {
|
||||
return it.getFunctionName() !== 'functionC';
|
||||
});
|
||||
return defaultPrepareStackTrace(error, trace);
|
||||
|
Loading…
Reference in New Issue
Block a user