Skip to content

Commit

Permalink
v0.0.8 update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Heber committed Nov 1, 2023
1 parent 9a1dc0b commit 93a5b68
Show file tree
Hide file tree
Showing 3 changed files with 1,695 additions and 1,986 deletions.
50 changes: 25 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
{
"name": "sf-warp",
"description": "Warp your code and see if your tests notice",
"version": "0.0.7",
"version": "0.0.8",
"dependencies": {
"@oclif/core": "^1.16.3",
"@salesforce/core": "^3.25.0",
"@salesforce/kit": "^1.5.45",
"@salesforce/sf-plugins-core": "^1.14.1",
"@oclif/core": "^3.9.2",
"@salesforce/core": "^5.3.16",
"@salesforce/kit": "^3.0.15",
"@salesforce/sf-plugins-core": "^4.0.0",
"tslib": "^2",
"web-tree-sitter-sfapex": "^0.0.9"
},
"devDependencies": {
"@oclif/test": "^2.1.1",
"@salesforce/cli-plugins-testkit": "^3.0.0",
"@salesforce/dev-config": "^3.1.0",
"@salesforce/dev-scripts": "^2",
"@salesforce/prettier-config": "^0.0.2",
"@salesforce/ts-sinon": "1.3.21",
"@typescript-eslint/eslint-plugin": "^5.36.1",
"@typescript-eslint/parser": "^5.36.1",
"@oclif/test": "^3.1.0",
"@salesforce/cli-plugins-testkit": "^4.4.12",
"@salesforce/dev-config": "^4.1.0",
"@salesforce/dev-scripts": "^6.0.3",
"@salesforce/prettier-config": "^0.0.3",
"@salesforce/ts-sinon": "1.4.19",
"@typescript-eslint/eslint-plugin": "^6.9.1",
"@typescript-eslint/parser": "^6.9.1",
"chai": "^4.3.6",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-salesforce": "^0.1.6",
"eslint-config-salesforce-typescript": "^0.2.7",
"eslint": "^8.52.0",
"eslint-config-prettier": "^9.0.0",
"eslint-config-salesforce": "^2.0.2",
"eslint-config-salesforce-typescript": "^3.0.2",
"eslint-plugin-header": "^3.0.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-jsdoc": "^35.1.2",
"eslint-plugin-prettier": "^3.4.1",
"eslint-plugin-import": "2.29.0",
"eslint-plugin-jsdoc": "^46.8.2",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-sf-plugin": "^1.1.0",
"husky": "^7.0.4",
"husky": "^8.0.3",
"mocha": "^10.0.0",
"nyc": "^15.1.0",
"oclif": "^2.7.0",
"prettier": "^2.7.1",
"oclif": "^4.0.3",
"prettier": "^3.0.3",
"pretty-quick": "^3.1.3",
"shx": "0.3.4",
"sinon": "10.0.0",
"sinon": "17.0.1",
"ts-node": "^10.9.1",
"typescript": "^4.7.3"
"typescript": "^5.2.2"
},
"engines": {
"node": ">=14.0.0"
Expand Down
17 changes: 8 additions & 9 deletions src/commands/warp/apex.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
import { Messages } from '@salesforce/core';
// eslint-disable-next-line no-restricted-imports
import ApexWarper, { Verbosity } from '../../lib/commands/apex';

Messages.importMessagesDirectory(__dirname);
Expand All @@ -11,7 +12,7 @@ export default class Apex extends SfCommand<any> {
public static readonly description = messages.getMessage('description');
public static readonly examples = messages.getMessages('examples');

public static flags = {
public static readonly flags = {
username: Flags.requiredOrg(),
class: Flags.string({
summary: messages.getMessage('flags.class.summary'),
Expand Down Expand Up @@ -52,7 +53,7 @@ export default class Apex extends SfCommand<any> {
summary: messages.getMessage('flags.analyze-only.summary'),
char: 'a',
}),
verbosity: Flags.enum({
verbosity: Flags.string({
summary: messages.getMessage('flags.verbosity.summary'),
char: 'v',
options: Object.keys(Verbosity),
Expand All @@ -75,17 +76,15 @@ export default class Apex extends SfCommand<any> {
// Probably has to be configurable
// if we have class files, consume those files and build up the list of classes to test
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
return await new ApexWarper(connection, {
return new ApexWarper(connection, {
analyzeOnly: flags['analyze-only'],
timeoutMs: flags.timeout * 1000,
verbosity: (flags.json ? Verbosity.none : flags.verbosity) as Verbosity,
testClassMatchPatterns: flags['test-class-match-pattern'],
classes: flags.class.map((className) => {
return {
className,
testClasses: flags['test-class'],
};
}),
classes: flags.class.map((className) => ({
className,
testClasses: flags['test-class'],
})),
}).executeWarpTests();
}
}
Loading

0 comments on commit 93a5b68

Please sign in to comment.