Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dvirtz committed Sep 20, 2023
1 parent 4fa4144 commit 6b6c7d3
Show file tree
Hide file tree
Showing 9 changed files with 11,342 additions and 9,596 deletions.
20,893 changes: 11,316 additions & 9,577 deletions package-lock.json

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,29 +166,29 @@
"devDependencies": {
"@commitlint/cli": "^17.0.2",
"@commitlint/config-conventional": "^17.0.2",
"@semantic-release/changelog": "^6.0.1",
"@jest/globals": "^29.6.2",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@types/glob": "^7.1.3",
"@types/jest": "^27.5.1",
"@types/node": "^12.20.11",
"@types/vscode": "^1.46.0",
"@typescript-eslint/eslint-plugin": "^5.27.1",
"@typescript-eslint/parser": "^5.27.1",
"@vscode/test-electron": "^2.1.3",
"cli-wd": "^0.6.0",
"cmake-js": "^7.1.1",
"cmake-js": "^7.2.1",
"copyfiles": "^2.4.1",
"cspell": "^5.11.0",
"eslint": "^8.17.0",
"glob-promise": "^4.2.0",
"husky": "^8.0.1",
"jest": "^27.5.1",
"jest-haste-map": "^27.5.1",
"jest": "^29.6.2",
"jest-haste-map": "^29.6.2",
"rimraf": "^5.0.1",
"semantic-release": "^19.0.3",
"semantic-release": "^21.0.7",
"semantic-release-vsce": "^5.0.17",
"tempy": "^1.0.1",
"ts-jest": "^27.1.5",
"ts-jest": "^29.1.1",
"ts-node": "^10.8.1",
"typescript": "^4.0.5"
},
Expand Down
1 change: 1 addition & 0 deletions test/integration/extension.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {describe, expect, test} from '@jest/globals';
import { commands, extensions } from 'vscode';
import { getUri, extensionId } from './utils';

Expand Down
1 change: 1 addition & 0 deletions test/integration/logger.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {describe, expect, test, afterEach} from '@jest/globals';
import { logLevel, logFolder, setLogFolder, setLogLevel } from '../../src/settings';
import { getUri } from './utils';
import { promises } from 'fs';
Expand Down
5 changes: 3 additions & 2 deletions test/integration/parquet-editor-provider.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {describe, expect, test, jest, beforeEach, afterEach} from '@jest/globals';
import * as vscode from 'vscode';
import { ParquetTextDocumentContentProvider } from "../../src/parquet-document-provider";
import { ParquetEditorProvider } from "../../src/parquet-editor-provider";
Expand All @@ -9,7 +10,7 @@ import { initLogger } from '../../src/logger';
jest.setTimeout(60000);

jest.mock('../../src/settings', () => {
const originalModule = jest.requireActual('../../src/settings');
const originalModule = jest.requireActual<typeof import('../../src/settings')>('../../src/settings');

//Mock the default export and named export 'foo'
return {
Expand Down Expand Up @@ -57,7 +58,7 @@ describe('ParquetEditorProvider', function () {
['small', 'parquets'],
['small', 'arrow'],
['large', 'parquets']
])('shows %p using %p', async function (name, backend) {
])('shows %p using %p', async function (name: string, backend: settings.Backend) {
const parquet = await getUri(`${name}.parquet`);
testFile = await copyTo(`${name}-${backend}.parquet`, parquet);
const checkChanged = new Promise(resolve => {
Expand Down
1 change: 0 additions & 1 deletion test/integration/runTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ async function main() {
path.resolve(projectPath, './test/workspace'),
"--disable-extensions"
],
version: '1.73.1',
platform: process.platform == 'win32' ? 'win32-x64-archive' : undefined
});
} catch (err) {
Expand Down
8 changes: 5 additions & 3 deletions test/unit/arrow-backend.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import {describe, expect, test, jest} from '@jest/globals';
import toArray from '@async-generators/to-array';
import { createReadStream } from 'fs';
import * as path from 'path';
import { createInterface } from 'readline';
import { ArrowBackend } from '../../src/arrow-backend';
import { jsonSpace } from '../../src/settings';
import { CancellationToken } from 'vscode';


const rootDir = path.join(__dirname, '..', '..');
Expand All @@ -29,7 +31,7 @@ describe("ArrowBackend tests", () => {
test.each([
["small", "small"],
["large", "large.arrow"]
])('Converts %s parquet to JSON', async function (name, expectedFile) {
])('Converts %s parquet to JSON', async function (name: string, expectedFile: string) {
const json = (await toArray(backend.toJson(path.join(workspace, `${name}.parquet`)))).map(line => line.trim());
const expected = await toArray(createInterface({ input: createReadStream(path.join(workspace, `${expectedFile}.json`)) }));

Expand All @@ -42,7 +44,7 @@ describe("ArrowBackend tests", () => {
);
});

test.each([0, 2, 10, "\t", "###"])('Test space %s', async function (space) {
test.each([0, 2, 10, "\t", "###"])('Test space %s', async function (space: number | string) {
jest.mocked(jsonSpace).mockReturnValue(space);

const json = (await toArray(backend.toJson(path.join(workspace, `small.parquet`)))).map(line => line.trim());
Expand All @@ -60,7 +62,7 @@ describe("ArrowBackend tests", () => {
isCancellationRequestedMock: jest.fn().mockReturnValueOnce(false).mockReturnValue(true),
onCancellationRequested: jest.fn()
};
expect(await toArray(backend.toJson(path.join(workspace, `small.parquet`), token))).toHaveLength(1);
expect(await toArray(backend.toJson(path.join(workspace, `small.parquet`), token as CancellationToken))).toHaveLength(1);
expect(token.isCancellationRequestedMock).toBeCalledTimes(2);
});
});
6 changes: 4 additions & 2 deletions test/unit/parquet-tools-backend.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import {describe, expect, test, jest} from '@jest/globals';
import toArray from '@async-generators/to-array';
import { createReadStream } from 'fs';
import * as path from 'path';
import { createInterface } from "readline";
import { ParquetToolsBackend } from "../../src/parquet-tools-backend";
import { CancellationToken } from 'vscode';

const rootDir = path.join(__dirname, '..', '..');

Expand Down Expand Up @@ -33,7 +35,7 @@ describe("ParquetToolsBackend tests", () => {

test.each(
["small", "large"]
)('Converts %s parquet to JSON', async function (name) {
)('Converts %s parquet to JSON', async function (name: string) {
const json = (await toArray(backend.toJson(path.join(workspace, `${name}.parquet`))));
const expected = await toArray(createInterface({ input: createReadStream(path.join(workspace, `${name}.json`)) }));

Expand All @@ -58,7 +60,7 @@ describe("ParquetToolsBackend tests", () => {
isCancellationRequestedMock: jest.fn().mockReturnValueOnce(false).mockReturnValue(true),
onCancellationRequested: jest.fn()
};
expect(await toArray(backend.toJson(path.join(workspace, `small.parquet`), token))).toHaveLength(1);
expect(await toArray(backend.toJson(path.join(workspace, `small.parquet`), token as CancellationToken))).toHaveLength(1);
expect(token.isCancellationRequestedMock).toBeCalledTimes(2);
});
});
9 changes: 5 additions & 4 deletions test/unit/parquets-backend.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@

import {describe, expect, test, jest} from '@jest/globals';
import toArray from '@async-generators/to-array';
import { createReadStream } from 'fs';
import * as path from 'path';
import { createInterface } from 'readline';
import { ParquetsBackend } from '../../src/parquets-backend';
import { jsonSpace } from '../../src/settings';
import { CancellationToken } from 'vscode';


const rootDir = path.join(__dirname, '..', '..');
Expand All @@ -29,7 +30,7 @@ describe("ParquetsBackend tests", () => {

test.each(
["small", "large"]
)('Converts %s parquet to JSON', async function (name) {
)('Converts %s parquet to JSON', async function (name: string) {
const json = (await toArray(backend.toJson(path.join(workspace, `${name}.parquet`)))).map(line => line.trim());
const expected = await toArray(createInterface({ input: createReadStream(path.join(workspace, `${name}.json`)) }));

Expand All @@ -40,7 +41,7 @@ describe("ParquetsBackend tests", () => {
await expect(toArray(backend.toJson("no-such-file"))).rejects.toThrow(/ENOENT: no such file or directory, stat '.*no-such-file'/);
});

test.each([0, 2, 10, "\t", "###"])('Test space %s', async function (space) {
test.each([0, 2, 10, "\t", "###"])('Test space %s', async function (space: number | string) {
jest.mocked(jsonSpace).mockReturnValue(space);

const json = (await toArray(backend.toJson(path.join(workspace, `small.parquet`)))).map(line => line.trim());
Expand All @@ -58,7 +59,7 @@ describe("ParquetsBackend tests", () => {
isCancellationRequestedMock: jest.fn().mockReturnValueOnce(false).mockReturnValue(true),
onCancellationRequested: jest.fn()
};
expect(await toArray(backend.toJson(path.join(workspace, `small.parquet`), token))).toHaveLength(1);
expect(await toArray(backend.toJson(path.join(workspace, `small.parquet`), token as CancellationToken))).toHaveLength(1);
expect(token.isCancellationRequestedMock).toBeCalledTimes(2);
});
});

0 comments on commit 6b6c7d3

Please sign in to comment.