-
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.
* add vitest dev dependency * Move tests to vitest * Add missing dependency * Remove all references to Jest * Add VSCode extension recommendation and settings * Check coverage under src dir only * Consolidate some ESLint disable in the config * Run VSCode tests with built-in parser * Ignore some untestable code paths
- Loading branch information
Showing
144 changed files
with
3,318 additions
and
8,365 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -29,9 +29,7 @@ | |
"prettier": "3.2.5", | ||
"prettier-plugin-java": "2.6.0", | ||
"prettier-plugin-organize-imports": "3.2.4", | ||
"rimraf": "5.0.5", | ||
"vite": "5.2.10", | ||
"vite-plugin-radar": "0.9.4" | ||
"rimraf": "5.0.5" | ||
}, | ||
"keywords": [], | ||
"author": "Dang Mai <[email protected]>", | ||
|
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 |
---|---|---|
|
@@ -25,7 +25,9 @@ | |
"devDependencies": { | ||
"@types/react": "18.2.79", | ||
"@types/react-dom": "18.2.25", | ||
"@vitejs/plugin-react": "4.2.1" | ||
"@vitejs/plugin-react": "4.2.1", | ||
"vite": "5.2.10", | ||
"vite-plugin-radar": "0.9.4" | ||
}, | ||
"author": "Dang Mai <[email protected]>", | ||
"license": "MIT" | ||
|
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 was deleted.
Oops, something went wrong.
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
3 changes: 3 additions & 0 deletions
3
...ges/prettier-plugin-apex/tests/annotated_class/__snapshots__/FormattedAnnotatedClass1.cls
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@IsTest | ||
class TestClass { | ||
} |
12 changes: 0 additions & 12 deletions
12
packages/prettier-plugin-apex/tests/annotated_class/__snapshots__/jsfmt.spec.ts.snap
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...ex/tests/annotated_class_false_param/__snapshots__/FormattedAnnotatedFalseParamClass1.cls
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@IsTest(SeeAllData=false) | ||
class AnnotatedFalseParamClass { | ||
} |
12 changes: 0 additions & 12 deletions
12
...s/prettier-plugin-apex/tests/annotated_class_false_param/__snapshots__/jsfmt.spec.ts.snap
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...apex/tests/annotated_class_true_param/__snapshots__/FormattedAnnotatedTrueParamClass1.cls
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@IsTest(SeeAllData=true) | ||
class AnnotedTrueParamClass { | ||
} |
12 changes: 0 additions & 12 deletions
12
...es/prettier-plugin-apex/tests/annotated_class_true_param/__snapshots__/jsfmt.spec.ts.snap
This file was deleted.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
...s/prettier-plugin-apex/tests/annotated_method/__snapshots__/FormattedAnnotatedMethod1.cls
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
class topLevelClass { | ||
@AuraEnabled | ||
public String someProperty { get; set; } | ||
|
||
@AuraEnabled(cacheable=true continuation=true) | ||
public static Account getAccount(Id accountId) { | ||
} | ||
|
||
@SuppressWarnings('PMD.ApexCRUDViolation') | ||
void someMethod() { | ||
} | ||
|
||
@SuppressWarnings('PMD.ApexCRUDViolation, PMD.AnotherViolation') | ||
void anotherMethod() { | ||
} | ||
|
||
@InvocableMethod(label='Label' description='Description' category='Category') | ||
List<String> getAccountNames(List<ID> ids) { | ||
} | ||
|
||
@InvocableMethod(callout=true) | ||
List<String> getAccountNamesWithCallout(List<ID> ids) { | ||
} | ||
|
||
@InvocableMethod | ||
public static List<Results> execute(List<Requests> requestList) { | ||
} | ||
|
||
@InvocableVariable( | ||
label='Records for Input' | ||
description='yourDescription' | ||
required=true | ||
) | ||
public List<SObject> inputCollection; | ||
} |
Oops, something went wrong.