Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add locations to logs, warnings and error messages (#5424)
- Loading branch information
1 parent
bbcdac3
commit 341d987
Showing
120 changed files
with
754 additions
and
635 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
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
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
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
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
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,17 +1,18 @@ | ||
const { sep } = require('node:path'); | ||
const { assertIncludes } = require('../../../utils.js'); | ||
|
||
module.exports = defineTest({ | ||
description: 'correctly adds locations to plugin warnings', | ||
command: 'rollup -c', | ||
stderr: stderr => { | ||
assertIncludes( | ||
stderr, | ||
'(!) Plugin test: Warning with file and id\n' + | ||
'file1: (1:2)\n' + | ||
'(!) Plugin test: Warning with file\n' + | ||
'file2: (2:3)\n' + | ||
'(!) Plugin test: Warning with id\n' + | ||
'file-id3: (3:4)\n' | ||
stderr.replaceAll(__dirname + sep, 'CWD/'), | ||
'(!) [plugin test] file1 (1:2): Warning with file and id\n' + | ||
'CWD/file1:1:2\n' + | ||
'(!) [plugin test] file2 (2:3): Warning with file\n' + | ||
'CWD/file2:2:3\n' + | ||
'(!) [plugin test] file-id3 (3:4): Warning with id\n' + | ||
'CWD/file-id3:3:4\n' | ||
); | ||
} | ||
}); |
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
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.