@salesforce/source-testkit 1.2.1 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/lib/assertions.js +3 -4
- package/lib/executionLog.js +4 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.2.4](https://github.com/salesforcecli/source-testkit/compare/v1.2.3...v1.2.4) (2022-06-22)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- bump core for jsforce ([c76f41a](https://github.com/salesforcecli/source-testkit/commit/c76f41aa8ca9ff60ed55f950d0aab0656f8a296f))
|
|
10
|
+
|
|
11
|
+
### [1.2.3](https://github.com/salesforcecli/source-testkit/compare/v1.2.2...v1.2.3) (2022-06-22)
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
- bump lib versions ([#82](https://github.com/salesforcecli/source-testkit/issues/82)) ([40f90d6](https://github.com/salesforcecli/source-testkit/commit/40f90d6b8e3e47a7c172dd01a8fa43cf96e89ab4))
|
|
16
|
+
|
|
17
|
+
### [1.2.2](https://github.com/salesforcecli/source-testkit/compare/v1.2.1...v1.2.2) (2022-06-18)
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
- shared autoFetchQuery ([1c23a9f](https://github.com/salesforcecli/source-testkit/commit/1c23a9f84eaaa548558b4deb71ae621497a9e922))
|
|
22
|
+
|
|
5
23
|
### [1.2.1](https://github.com/salesforcecli/source-testkit/compare/v1.2.0...v1.2.1) (2022-06-18)
|
|
6
24
|
|
|
7
25
|
### Bug Fixes
|
package/lib/assertions.js
CHANGED
|
@@ -16,7 +16,6 @@ const source_deploy_retrieve_1 = require("@salesforce/source-deploy-retrieve");
|
|
|
16
16
|
const debug_1 = require("debug");
|
|
17
17
|
const fileTracker_1 = require("./fileTracker");
|
|
18
18
|
(0, chai_1.use)(chaiEach);
|
|
19
|
-
const SOQL_QUERY_LIMIT = 50000;
|
|
20
19
|
/**
|
|
21
20
|
* Assertions is a class that is designed to encapsulate common assertions we want to
|
|
22
21
|
* make during NUT testings
|
|
@@ -337,7 +336,7 @@ class Assertions {
|
|
|
337
336
|
async retrieveSourceMembers(globs, ignore = []) {
|
|
338
337
|
var _a;
|
|
339
338
|
const query = 'SELECT Id,MemberName,MemberType,RevisionCounter FROM SourceMember';
|
|
340
|
-
const result = await ((_a = this.connection) === null || _a === void 0 ? void 0 : _a.tooling.query(
|
|
339
|
+
const result = await ((_a = this.connection) === null || _a === void 0 ? void 0 : _a.tooling.query(query, { autoFetch: true, maxFetch: 50000 }));
|
|
341
340
|
const all = await this.doGlob(globs);
|
|
342
341
|
const ignoreFiles = await this.doGlob(ignore, false);
|
|
343
342
|
const toTrack = all.filter((file) => !ignoreFiles.includes(file));
|
|
@@ -365,13 +364,13 @@ class Assertions {
|
|
|
365
364
|
async retrieveApexTestResults() {
|
|
366
365
|
var _a;
|
|
367
366
|
const query = 'SELECT TestTimestamp, ApexClassId FROM ApexTestResult';
|
|
368
|
-
const result = await ((_a = this.connection) === null || _a === void 0 ? void 0 : _a.tooling.query(
|
|
367
|
+
const result = await ((_a = this.connection) === null || _a === void 0 ? void 0 : _a.tooling.query(query, { autoFetch: true, maxFetch: 50000 }));
|
|
369
368
|
return (result === null || result === void 0 ? void 0 : result.records) || [];
|
|
370
369
|
}
|
|
371
370
|
async retrieveApexClasses(classNames) {
|
|
372
371
|
var _a;
|
|
373
372
|
const query = 'SELECT Name,Id FROM ApexClass';
|
|
374
|
-
const result = await ((_a = this.connection) === null || _a === void 0 ? void 0 : _a.tooling.query(
|
|
373
|
+
const result = await ((_a = this.connection) === null || _a === void 0 ? void 0 : _a.tooling.query(query, { autoFetch: true, maxFetch: 50000 }));
|
|
375
374
|
const records = (result === null || result === void 0 ? void 0 : result.records) || [];
|
|
376
375
|
return classNames ? records.filter((r) => classNames.includes(r.Name)) : records;
|
|
377
376
|
}
|
package/lib/executionLog.js
CHANGED
|
@@ -51,7 +51,10 @@ class ExecutionLog {
|
|
|
51
51
|
async querySourceMembers() {
|
|
52
52
|
var _a;
|
|
53
53
|
const query = 'SELECT Id,MemberName,MemberType,RevisionCounter FROM SourceMember';
|
|
54
|
-
const result = await ((_a = this.context.connection) === null || _a === void 0 ? void 0 : _a.tooling.query(
|
|
54
|
+
const result = await ((_a = this.context.connection) === null || _a === void 0 ? void 0 : _a.tooling.query(query, {
|
|
55
|
+
autoFetch: true,
|
|
56
|
+
maxFetch: 50000,
|
|
57
|
+
}));
|
|
55
58
|
return (result === null || result === void 0 ? void 0 : result.records) || [];
|
|
56
59
|
}
|
|
57
60
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/source-testkit",
|
|
3
3
|
"description": "testkit for running NUTs for source related commands",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.4",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"main": "lib/index.js",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"!lib/**/*.map"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@salesforce/cli-plugins-testkit": "^2.
|
|
34
|
-
"@salesforce/core": "^3.
|
|
33
|
+
"@salesforce/cli-plugins-testkit": "^2.3.0",
|
|
34
|
+
"@salesforce/core": "^3.21.3",
|
|
35
35
|
"@salesforce/kit": "^1.5.42",
|
|
36
|
-
"@salesforce/source-deploy-retrieve": "^6.0
|
|
36
|
+
"@salesforce/source-deploy-retrieve": "^6.1.0",
|
|
37
37
|
"@salesforce/ts-types": "^1.5.20",
|
|
38
38
|
"archiver": "^5.2.0",
|
|
39
39
|
"chai-each": "^0.0.1",
|