-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: output ignored resolution defects
and add profile test cases Defects (and general results) ignored because of resolution being ignored by profile are shown with "(ignored)" qualifier.
- Loading branch information
Showing
9 changed files
with
3,200 additions
and
8 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 |
---|---|---|
|
@@ -43,6 +43,18 @@ const tests = [ | |
|
||
["[email protected]", "--entrypoints-legacy --ignore-rules=cjs-only-exports-default"], | ||
["@[email protected]"], | ||
|
||
// Profile test cases | ||
// Some ignored failures and some not - exit code should be 1 per non-node10 failures | ||
["[email protected]", "--profile node16"], | ||
// Explicit strict profile - exit code 1 per node10 resolution | ||
["@[email protected]", "--profile strict -f table"], | ||
// Profile ignoring node10 resolution - exit code 0 | ||
["@[email protected]", "--profile node16 -f table-flipped"], | ||
// Profile ignoring node10 and CJS resolution mixed with specific entrypoint - exit code 0 | ||
["@[email protected]", "--profile esm-only -f json --entrypoints ."], | ||
// Profile ignoring node10 and bundler resolution - exit code 0 | ||
["@[email protected]", "--profile node16-only -f ascii"], | ||
]; | ||
|
||
const defaultOpts = "-f table-flipped"; | ||
|
Oops, something went wrong.