Skip to content

Commit

Permalink
chore: update esmoduleinterop
Browse files Browse the repository at this point in the history
  • Loading branch information
mingxuanzhangsfdx committed Dec 5, 2023
1 parent 2cce606 commit 7bcce1a
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 19 deletions.
3 changes: 2 additions & 1 deletion test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"compilerOptions": {
"noEmit": true,
"skipLibCheck": true,
"resolveJsonModule": true
"resolveJsonModule": true,
"esModuleInterop": true
}
}
2 changes: 1 addition & 1 deletion test/unit/config/configAggregatorTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @typescript-eslint/no-unsafe-call */
import * as fs from 'fs';
import fs from 'fs';
import { assert, expect, config as chaiConfig } from 'chai';
import { Config, ConfigProperties, SFDX_ALLOWED_PROPERTIES, SfdxPropertyKeys } from '../../../src/config/config';
import { ConfigAggregator, ConfigInfo } from '../../../src/config/configAggregator';
Expand Down
4 changes: 2 additions & 2 deletions test/unit/config/configFileTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @typescript-eslint/no-unsafe-call */

import * as Path from 'path';
import * as fs from 'fs';
import Path from 'path';
import fs from 'fs';
import { expect } from 'chai';

import { assert } from '@salesforce/ts-types';
Expand Down
6 changes: 3 additions & 3 deletions test/unit/crypto/cryptoKeyFailuresTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
*/
/* eslint-disable @typescript-eslint/no-unsafe-member-access */

import * as childProcess from 'child_process';
import * as _crypto from 'crypto';
import * as os from 'os';
import childProcess from 'child_process';
import _crypto from 'crypto';
import os from 'os';
import { AnyJson } from '@salesforce/ts-types';
import { assert, expect } from 'chai';
import { Crypto } from '../../../src/crypto/crypto';
Expand Down
2 changes: 1 addition & 1 deletion test/unit/crypto/cryptoTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
/* eslint-disable @typescript-eslint/ban-types */

import * as os from 'os';
import os from 'os';
import { stubMethod } from '@salesforce/ts-sinon';
import { expect } from 'chai';
import { Crypto } from '../../../src/crypto/crypto';
Expand Down
2 changes: 1 addition & 1 deletion test/unit/crypto/keyChainImplTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/* eslint-disable no-underscore-dangle */
/* eslint-disable @typescript-eslint/no-unsafe-assignment */

import * as fs from 'fs';
import fs from 'fs';
import { assert, expect } from 'chai';
import { KeychainAccess, keyChainImpl } from '../../../src/crypto/keyChainImpl';
import { shouldThrow, TestContext } from '../../../src/testSetup';
Expand Down
2 changes: 1 addition & 1 deletion test/unit/crypto/secureStringTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import * as crypto from 'crypto';
import crypto from 'crypto';
import { expect } from 'chai';
import { stub } from 'sinon';
import { SecureBuffer } from '../../../src/crypto/secureBuffer';
Expand Down
4 changes: 2 additions & 2 deletions test/unit/messagesTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
/* eslint-disable @typescript-eslint/no-unsafe-argument */
/* eslint-disable @typescript-eslint/no-unsafe-member-access */

import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
import { EOL } from 'os';
import { cloneJson } from '@salesforce/kit';
import { assert, expect } from 'chai';
Expand Down
6 changes: 3 additions & 3 deletions test/unit/org/authInfoTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
/* eslint-disable @typescript-eslint/ban-types */
/* eslint-disable @typescript-eslint/no-unsafe-member-access */

import * as pathImport from 'path';
import * as dns from 'dns';
import * as jwt from 'jsonwebtoken';
import pathImport from 'path';
import dns from 'dns';
import jwt from 'jsonwebtoken';
import { cloneJson, env, includes } from '@salesforce/kit';
import { spyMethod, stubMethod } from '@salesforce/ts-sinon';
import { AnyJson, getJsonMap, JsonMap, toJsonMap } from '@salesforce/ts-types';
Expand Down
2 changes: 1 addition & 1 deletion test/unit/org/orgTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import { deepStrictEqual, fail } from 'assert';
import * as fs from 'fs';
import fs from 'fs';
import { constants as fsConstants } from 'fs';
import { join as pathJoin } from 'path';
import { format } from 'node:util';
Expand Down
2 changes: 1 addition & 1 deletion test/unit/status/myDomainResolverTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import * as dns from 'dns';
import dns from 'dns';
import { URL } from 'url';
import { Duration, Env } from '@salesforce/kit';
import { AnyFunction } from '@salesforce/ts-types';
Expand Down
2 changes: 1 addition & 1 deletion test/unit/util/directoryWriterTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import * as fs from 'fs';
import * as path from 'path';
import { Readable } from 'stream';
import * as chai from 'chai';
import * as chaiString from 'chai-string';
import chaiString from 'chai-string';
import { DirectoryWriter } from '../../../src/util/directoryWriter';

// eslint-disable-next-line @typescript-eslint/no-var-requires
Expand Down
2 changes: 1 addition & 1 deletion test/unit/util/zipWriterTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import * as fs from 'fs';
import * as path from 'path';
import { expect } from 'chai';
import * as sinon from 'sinon';
import * as JSZip from 'jszip';
import JSZip from 'jszip';
import { ZipWriter } from '../../../src/util/zipWriter';

describe('ZipWriter', () => {
Expand Down

0 comments on commit 7bcce1a

Please sign in to comment.