File tree Expand file tree Collapse file tree 8 files changed +263
-257
lines changed Expand file tree Collapse file tree 8 files changed +263
-257
lines changed Original file line number Diff line number Diff line change 56
56
"ts-retry-promise" : " ^0.8.1"
57
57
},
58
58
"devDependencies" : {
59
- "@salesforce/dev-scripts" : " ^10.2.2 " ,
59
+ "@salesforce/dev-scripts" : " ^10.2.7 " ,
60
60
"@salesforce/ts-sinon" : " ^1.4.22" ,
61
61
"@types/debug" : " ^4.1.12" ,
62
62
"ts-node" : " ^10.9.2" ,
Original file line number Diff line number Diff line change 6
6
*/
7
7
import * as fs from 'node:fs' ;
8
8
import * as path from 'node:path' ;
9
- import * as JSZip from 'jszip' ;
9
+ import JSZip from 'jszip' ;
10
10
import Debug from 'debug' ;
11
11
12
12
export type ZipDirConfig = {
@@ -25,7 +25,7 @@ export type ZipDirConfig = {
25
25
* E.g., "myArchivedDir.zip"
26
26
*/
27
27
name : string ;
28
- }
28
+ } ;
29
29
30
30
/**
31
31
* Zip the contents of a directory to a file.
Original file line number Diff line number Diff line change 4
4
* Licensed under the BSD 3-Clause license.
5
5
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
6
*/
7
- import * as fs from 'node:fs' ;
7
+ import fs from 'node:fs' ;
8
8
import { join } from 'node:path' ;
9
9
import { expect , assert , config } from 'chai' ;
10
- import * as sinon from 'sinon' ;
10
+ import sinon from 'sinon' ;
11
11
import { Duration , env } from '@salesforce/kit' ;
12
12
import { stubMethod } from '@salesforce/ts-sinon' ;
13
- import * as shelljs from 'shelljs' ;
13
+ import shelljs from 'shelljs' ;
14
14
import { ShellString } from 'shelljs' ;
15
15
import { beforeEach } from 'mocha' ;
16
16
import { execCmd } from '../../src' ;
Original file line number Diff line number Diff line change 4
4
* Licensed under the BSD 3-Clause license.
5
5
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
6
*/
7
- import * as fs from 'node:fs' ;
7
+ import fs from 'node:fs' ;
8
8
import { tmpdir } from 'node:os' ;
9
9
import { join as pathJoin } from 'node:path' ;
10
10
import { assert , expect } from 'chai' ;
11
- import * as sinon from 'sinon' ;
12
- import * as shelljs from 'shelljs' ;
11
+ import sinon from 'sinon' ;
12
+ import shelljs from 'shelljs' ;
13
13
import { ShellString } from 'shelljs' ;
14
14
import { stubMethod } from '@salesforce/ts-sinon' ;
15
15
import { env } from '@salesforce/kit' ;
Original file line number Diff line number Diff line change 7
7
8
8
// For testing private properties of TestSession
9
9
/* eslint-disable @typescript-eslint/ban-ts-comment */
10
- import * as fs from 'node:fs' ;
11
- import * as path from 'node:path' ;
10
+ import fs from 'node:fs' ;
11
+ import path from 'node:path' ;
12
12
import { assert , expect } from 'chai' ;
13
- import * as sinon from 'sinon' ;
14
- import * as shelljs from 'shelljs' ;
13
+ import sinon from 'sinon' ;
14
+ import shelljs from 'shelljs' ;
15
15
import { ShellString } from 'shelljs' ;
16
16
import { spyMethod , stubMethod } from '@salesforce/ts-sinon' ;
17
17
import { env } from '@salesforce/kit' ;
Original file line number Diff line number Diff line change 4
4
* Licensed under the BSD 3-Clause license.
5
5
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
6
*/
7
- import * as fs from 'node:fs' ;
7
+ import fs from 'node:fs' ;
8
8
import { join } from 'node:path' ;
9
9
import { tmpdir } from 'node:os' ;
10
10
import { expect } from 'chai' ;
11
- import * as JSZip from 'jszip' ;
11
+ import JSZip from 'jszip' ;
12
12
import { zipDir } from '../../src/zip' ;
13
13
14
14
describe ( 'zipDir' , ( ) => {
Original file line number Diff line number Diff line change 11
11
* a number of the testSession fail. Running these tests after testSession tests seems to work,
12
12
* so chose a file name that guarantees these will be run last.
13
13
*/
14
- import * as fs from 'node:fs' ;
15
- import * as os from 'node:os' ;
16
- import * as path from 'node:path' ;
14
+ import fs from 'node:fs' ;
15
+ import os from 'node:os' ;
16
+ import path from 'node:path' ;
17
17
import { stubMethod } from '@salesforce/ts-sinon' ;
18
- import * as chai from 'chai' ;
18
+ import { expect } from 'chai' ;
19
19
import { AuthFields } from '@salesforce/core' ;
20
20
import { Env , env } from '@salesforce/kit' ;
21
- import * as sinon from 'sinon' ;
22
- import * as shell from 'shelljs' ;
21
+ import sinon from 'sinon' ;
22
+ import shell from 'shelljs' ;
23
23
import { prepareForAuthUrl , prepareForJwt , transferExistingAuthToEnv } from '../../src/hubAuth' ;
24
24
25
- const { expect } = chai ;
26
25
const tmp = os . tmpdir ( ) ;
27
26
type SampleData = {
28
27
jwtKeyWithHeaderFooter : string ;
You can’t perform that action at this time.
0 commit comments