Skip to content

Commit 5259376

Browse files
committed
@W-22517579 upgrade all dependencies to their latest versions
1 parent f585ce6 commit 5259376

3 files changed

Lines changed: 25 additions & 14 deletions

File tree

package.json

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,21 @@
33
"description": "Transfer setup data from one org to another in a single step",
44
"version": "1.0.0",
55
"dependencies": {
6-
"@oclif/core": "^4",
7-
"@salesforce/core": "^8",
8-
"@salesforce/sf-plugins-core": "^12"
6+
"@oclif/core": "^4.11.4",
7+
"@salesforce/core": "^8.31.0",
8+
"@salesforce/sf-plugins-core": "^12.2.22"
99
},
1010
"devDependencies": {
11-
"@oclif/plugin-command-snapshot": "^5.1.9",
12-
"@salesforce/cli-plugins-testkit": "^5.3.10",
13-
"@salesforce/dev-scripts": "^10",
14-
"@types/node": "^18",
15-
"eslint-plugin-sf-plugin": "^1.18.6",
16-
"husky": "^9",
17-
"oclif": "^4.14.0",
11+
"@oclif/plugin-command-snapshot": "^5.3.22",
12+
"@salesforce/cli-plugins-testkit": "^5.3.58",
13+
"@salesforce/dev-scripts": "^11.0.4",
14+
"@types/mocha": "^10.0.10",
15+
"@types/node": "^25.9.1",
16+
"eslint-plugin-sf-plugin": "^1.20.33",
17+
"husky": "^9.1.7",
18+
"oclif": "^4.23.8",
1819
"ts-node": "^10.9.2",
19-
"typescript": "^5.4.5",
20+
"typescript": "^6.0.3",
2021
"wireit": "^0.14.12"
2122
},
2223
"engines": {
@@ -132,7 +133,8 @@
132133
"test:only": {
133134
"command": "nyc mocha \"test/**/*.test.ts\"",
134135
"env": {
135-
"FORCE_COLOR": "2"
136+
"FORCE_COLOR": "2",
137+
"TS_NODE_PROJECT": "test/tsconfig.json"
136138
},
137139
"files": [
138140
"test/**/*.ts",

test/commands/data/setup/transfer.test.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import * as fs from 'node:fs';
2+
import * as os from 'node:os';
3+
import * as path from 'node:path';
14
import { TestContext, MockTestOrgData } from '@salesforce/core/testSetup';
25
import { expect } from 'chai';
36
import { stubSfCommandUx } from '@salesforce/sf-plugins-core';
@@ -96,14 +99,17 @@ describe('data setup transfer', () => {
9699
});
97100

98101
it('throws error when both standard and custom definition flags are provided', async () => {
102+
const tmpDefFile = path.join(os.tmpdir(), `test-definition-${Date.now()}.json`);
103+
fs.writeFileSync(tmpDefFile, '{}', 'utf8');
104+
99105
try {
100106
await SetupTransfer.run([
101107
'--definition-identifier',
102108
'testDefinition',
103109
'--version',
104110
'1.0.0',
105111
'--extended-definition-file',
106-
'/tmp/test-definition.json',
112+
tmpDefFile,
107113
'--source-org',
108114
'source@test.org',
109115
'--target-org',
@@ -112,6 +118,8 @@ describe('data setup transfer', () => {
112118
expect.fail('Should have thrown an error');
113119
} catch (error) {
114120
expect((error as Error).message).to.include('Cannot use');
121+
} finally {
122+
fs.rmSync(tmpDefFile, { force: true });
115123
}
116124
});
117125
});

test/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"extends": "@salesforce/dev-config/tsconfig-test-strict-esm",
33
"include": ["./**/*.ts"],
44
"compilerOptions": {
5-
"skipLibCheck": true
5+
"skipLibCheck": true,
6+
"types": ["node", "mocha"]
67
}
78
}

0 commit comments

Comments
 (0)