Skip to content

Commit

Permalink
fix: Update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
d3xter666 committed Jan 6, 2025
1 parent 2cc3009 commit 042fb6b
Show file tree
Hide file tree
Showing 4 changed files with 349 additions and 26 deletions.
4 changes: 3 additions & 1 deletion src/linter/ui5Types/amdTranspiler/tsTransformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,9 @@ function transform(
metadata.transformedImports = new Map<string, Set<string>>();
}
const curResource = metadata.transformedImports.get(importType) ?? new Set<string>();
curResource.add(importStatement.moduleSpecifier.getText());
if (ts.isStringLiteral(importStatement.moduleSpecifier)) {
curResource.add(importStatement.moduleSpecifier.text);
}
metadata.transformedImports.set(importType, curResource);
}

Expand Down
33 changes: 29 additions & 4 deletions test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,17 @@ Generated by [AVA](https://avajs.dev).
errorCount: 0,
fatalErrorCount: 0,
filePath: 'Configuration.beforeBootstrap.qunit.js',
messages: [],
warningCount: 0,
messages: [
{
column: 1,
line: 3,
message: 'To save boilerplate code and ensure compliance with UI5 2.x best practices, please migrate to the Test Starter concept',
messageDetails: 'Test Starter (https://ui5.sap.com/#/topic/032be2cb2e1d4115af20862673bedcdb)',
ruleId: 'prefer-test-starter',
severity: 1,
},
],
warningCount: 1,
},
]

Expand Down Expand Up @@ -2947,8 +2956,16 @@ Generated by [AVA](https://avajs.dev).
ruleId: 'no-deprecated-theme',
severity: 2,
},
{
column: 9,
line: 3,
message: 'To save boilerplate code and ensure compliance with UI5 2.x best practices, please migrate to the Test Starter concept',
messageDetails: 'Test Starter (https://ui5.sap.com/#/topic/032be2cb2e1d4115af20862673bedcdb)',
ruleId: 'prefer-test-starter',
severity: 1,
},
],
warningCount: 0,
warningCount: 1,
},
]

Expand Down Expand Up @@ -3027,8 +3044,16 @@ Generated by [AVA](https://avajs.dev).
ruleId: 'no-deprecated-theme',
severity: 2,
},
{
column: 9,
line: 3,
message: 'To save boilerplate code and ensure compliance with UI5 2.x best practices, please migrate to the Test Starter concept',
messageDetails: 'Test Starter (https://ui5.sap.com/#/topic/032be2cb2e1d4115af20862673bedcdb)',
ruleId: 'prefer-test-starter',
severity: 1,
},
],
warningCount: 0,
warningCount: 1,
},
]

Expand Down
92 changes: 85 additions & 7 deletions test/lib/linter/snapshots/linter.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -849,8 +849,16 @@ Generated by [AVA](https://avajs.dev).
ruleId: 'no-globals',
severity: 2,
},
{
column: 18,
line: 7,
message: 'To save boilerplate code and ensure compliance with UI5 2.x best practices, please migrate to the Test Starter concept',
messageDetails: 'Test Starter (https://ui5.sap.com/#/topic/032be2cb2e1d4115af20862673bedcdb)',
ruleId: 'prefer-test-starter',
severity: 1,
},
],
warningCount: 1,
warningCount: 2,
},
{
coverageInfo: [
Expand Down Expand Up @@ -954,8 +962,25 @@ Generated by [AVA](https://avajs.dev).
errorCount: 0,
fatalErrorCount: 0,
filePath: 'webapp/test/testsuite.qunit.js',
messages: [],
warningCount: 0,
messages: [
{
column: 14,
line: 3,
message: 'To save boilerplate code and ensure compliance with UI5 2.x best practices, please migrate to the Test Starter concept',
messageDetails: 'Test Starter (https://ui5.sap.com/#/topic/032be2cb2e1d4115af20862673bedcdb)',
ruleId: 'prefer-test-starter',
severity: 1,
},
{
column: 1,
line: 2,
message: 'To save boilerplate code and ensure compliance with UI5 2.x best practices, please migrate to the Test Starter concept',
messageDetails: 'Test Starter (https://ui5.sap.com/#/topic/032be2cb2e1d4115af20862673bedcdb)',
ruleId: 'prefer-test-starter',
severity: 1,
},
],
warningCount: 2,
},
{
coverageInfo: [],
Expand Down Expand Up @@ -1042,8 +1067,16 @@ Generated by [AVA](https://avajs.dev).
ruleId: 'no-globals',
severity: 2,
},
{
column: 18,
line: 9,
message: 'To save boilerplate code and ensure compliance with UI5 2.x best practices, please migrate to the Test Starter concept',
messageDetails: 'Test Starter (https://ui5.sap.com/#/topic/032be2cb2e1d4115af20862673bedcdb)',
ruleId: 'prefer-test-starter',
severity: 1,
},
],
warningCount: 1,
warningCount: 2,
},
{
coverageInfo: [],
Expand Down Expand Up @@ -1455,8 +1488,15 @@ Generated by [AVA](https://avajs.dev).
ruleId: 'no-globals',
severity: 2,
},
{
column: 18,
line: 7,
message: 'To save boilerplate code and ensure compliance with UI5 2.x best practices, please migrate to the Test Starter concept',
ruleId: 'prefer-test-starter',
severity: 1,
},
],
warningCount: 1,
warningCount: 2,
},
{
coverageInfo: [],
Expand All @@ -1481,6 +1521,29 @@ Generated by [AVA](https://avajs.dev).
],
warningCount: 2,
},
{
coverageInfo: [],
errorCount: 0,
fatalErrorCount: 0,
filePath: 'webapp/test/testsuite.qunit.js',
messages: [
{
column: 14,
line: 3,
message: 'To save boilerplate code and ensure compliance with UI5 2.x best practices, please migrate to the Test Starter concept',
ruleId: 'prefer-test-starter',
severity: 1,
},
{
column: 1,
line: 2,
message: 'To save boilerplate code and ensure compliance with UI5 2.x best practices, please migrate to the Test Starter concept',
ruleId: 'prefer-test-starter',
severity: 1,
},
],
warningCount: 2,
},
{
coverageInfo: [],
errorCount: 1,
Expand Down Expand Up @@ -1552,8 +1615,15 @@ Generated by [AVA](https://avajs.dev).
ruleId: 'no-globals',
severity: 2,
},
{
column: 18,
line: 9,
message: 'To save boilerplate code and ensure compliance with UI5 2.x best practices, please migrate to the Test Starter concept',
ruleId: 'prefer-test-starter',
severity: 1,
},
],
warningCount: 1,
warningCount: 2,
},
{
coverageInfo: [],
Expand Down Expand Up @@ -3014,8 +3084,16 @@ Generated by [AVA](https://avajs.dev).
ruleId: 'no-globals',
severity: 2,
},
{
column: 18,
line: 7,
message: 'To save boilerplate code and ensure compliance with UI5 2.x best practices, please migrate to the Test Starter concept',
messageDetails: 'Test Starter (https://ui5.sap.com/#/topic/032be2cb2e1d4115af20862673bedcdb)',
ruleId: 'prefer-test-starter',
severity: 1,
},
],
warningCount: 1,
warningCount: 2,
},
{
coverageInfo: [],
Expand Down
Loading

0 comments on commit 042fb6b

Please sign in to comment.