@salesforce/source-testkit 1.0.1 → 1.1.1

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 CHANGED
@@ -2,6 +2,21 @@
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.1.1](https://github.com/salesforcecli/source-testkit/compare/v1.1.0...v1.1.1) (2022-06-06)
6
+
7
+ ### Bug Fixes
8
+
9
+ - don't clear StateAggregator ([c6cdc17](https://github.com/salesforcecli/source-testkit/commit/c6cdc171bdb8c53e9c5920b8dcb92952db6a2f9c))
10
+ - testkit with no StateAgg clearing ([63b5c0f](https://github.com/salesforcecli/source-testkit/commit/63b5c0fe31caaa0ff576fab2d49cb3de024a6c69))
11
+
12
+ ## [1.1.0](https://github.com/salesforcecli/source-testkit/compare/v1.0.2...v1.1.0) (2022-06-06)
13
+
14
+ ### Features
15
+
16
+ - clear StateAggregator ([180ee90](https://github.com/salesforcecli/source-testkit/commit/180ee9081e307ed17948a4c92140ddf7ed5d4da1))
17
+
18
+ ### [1.0.2](https://github.com/salesforcecli/source-testkit/compare/v1.0.1...v1.0.2) (2022-06-06)
19
+
5
20
  ### [1.0.1](https://github.com/salesforcecli/source-testkit/compare/v1.0.0...v1.0.1) (2022-05-31)
6
21
 
7
22
  ### Bug Fixes
package/lib/testkit.js CHANGED
@@ -382,8 +382,8 @@ class SourceTestkit extends kit_1.AsyncCreatable {
382
382
  this.metadataResolver = new source_deploy_retrieve_1.MetadataResolver();
383
383
  this.session = await this.createSession();
384
384
  this.projectDir = this.session.project.dir;
385
- const sfdxProject = await core_1.SfdxProject.resolve(this.projectDir);
386
- this.packages = sfdxProject.getPackageDirectories();
385
+ const sfProject = await core_1.SfProject.resolve(this.projectDir);
386
+ this.packages = sfProject.getPackageDirectories();
387
387
  this.packageNames = this.packages.map((p) => p.name);
388
388
  this.packagePaths = this.packages.map((p) => p.fullPath);
389
389
  this.packageGlobs = this.packages.map((p) => `${p.path}/**/*`);
@@ -473,9 +473,10 @@ class SourceTestkit extends kit_1.AsyncCreatable {
473
473
  async createConnection() {
474
474
  if (this.orgless)
475
475
  return;
476
- return await core_1.Connection.create({
476
+ const conn = await core_1.Connection.create({
477
477
  authInfo: await core_1.AuthInfo.create({ username: this.username }),
478
478
  });
479
+ return conn;
479
480
  }
480
481
  async doGlob(globs) {
481
482
  const dir = this.projectDir.replace(/\\/g, '/');
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.0.1",
4
+ "version": "1.1.1",
5
5
  "author": "Salesforce",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "lib/index.js",
@@ -30,11 +30,11 @@
30
30
  "!lib/**/*.map"
31
31
  ],
32
32
  "dependencies": {
33
- "@salesforce/cli-plugins-testkit": "^2.0.0",
34
- "@salesforce/core": "^3.19.1",
35
- "@salesforce/kit": "^1.4.5",
33
+ "@salesforce/cli-plugins-testkit": "^2.1.4",
34
+ "@salesforce/core": "^3.19.4",
35
+ "@salesforce/kit": "^1.5.42",
36
36
  "@salesforce/source-deploy-retrieve": "^6.0.2",
37
- "@salesforce/ts-types": "^1.5.5",
37
+ "@salesforce/ts-types": "^1.5.20",
38
38
  "archiver": "^5.2.0",
39
39
  "chai-each": "^0.0.1",
40
40
  "debug": "^4.3.1",
@@ -55,14 +55,14 @@
55
55
  "chai": "^4.3.0",
56
56
  "copyfiles": "^2.4.1",
57
57
  "cz-conventional-changelog": "^3.3.0",
58
- "eslint": "^7.21.0",
58
+ "eslint": "^7.27.0",
59
59
  "eslint-config-prettier": "^8.1.0",
60
60
  "eslint-config-salesforce": "^0.1.6",
61
61
  "eslint-config-salesforce-license": "^0.1.6",
62
62
  "eslint-config-salesforce-typescript": "^0.2.8",
63
63
  "eslint-plugin-header": "^3.1.1",
64
- "eslint-plugin-import": "^2.22.1",
65
- "eslint-plugin-jsdoc": "^32.2.0",
64
+ "eslint-plugin-import": "2.24.2",
65
+ "eslint-plugin-jsdoc": "^35.1.2",
66
66
  "eslint-plugin-prettier": "^3.3.1",
67
67
  "husky": "^7.0.4",
68
68
  "mocha": "^9.1.3",