Skip to content

Commit 1cdb9b8

Browse files
committed
change jest-env version
1 parent b7da6cc commit 1cdb9b8

File tree

4 files changed

+491
-442
lines changed

4 files changed

+491
-442
lines changed

apps/studio/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@
108108
"conventional-changelog-conventionalcommits": "^5.0.0",
109109
"cross-env": "^7.0.3",
110110
"esbuild": "0.18.20",
111+
"eslint-config-custom": "workspace:*",
111112
"https-browserify": "^1.0.0",
113+
"jest-environment-jsdom": "27.5.1",
112114
"markdown-toc": "^1.2.0",
113115
"path-browserify": "^1.0.1",
114116
"postcss": "^8.4.31",
@@ -123,8 +125,7 @@
123125
"url": "^0.11.0",
124126
"util": "^0.12.5",
125127
"web-vitals": "^3.1.0",
126-
"webpack": "^5.75.0",
127-
"eslint-config-custom": "workspace:*"
128+
"webpack": "^5.75.0"
128129
},
129130
"jest": {
130131
"transformIgnorePatterns": [

apps/studio/src/services/converter.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { AbstractService } from './abstract.service';
22

33
import { convert } from '@asyncapi/converter';
44

5-
import type { ConvertVersion, ConvertOptions } from '@asyncapi/converter';
5+
import type { AsyncAPIConvertVersion, ConvertOptions } from '@asyncapi/converter';
66

77
export class ConverterService extends AbstractService {
88
async convert(
99
spec: string,
10-
version?: ConvertVersion,
10+
version?: AsyncAPIConvertVersion,
1111
options?: ConvertOptions,
1212
): Promise<string> {
1313
version = version || this.svcs.specificationSvc.latestVersion;

apps/studio/src/services/editor.service.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { appState, documentsState, filesState, settingsState } from '../state';
1010

1111
import type * as monacoAPI from 'monaco-editor/esm/vs/editor/editor.api';
1212
import type { Diagnostic } from '@asyncapi/parser/cjs';
13-
import type { ConvertVersion } from '@asyncapi/converter';
13+
import type { AsyncAPIConvertVersion } from '@asyncapi/converter';
1414
import type { File } from '../state/files.state';
1515

1616
export interface UpdateState {
@@ -97,8 +97,8 @@ export class EditorService extends AbstractService {
9797
});
9898
}
9999

100-
async convertSpec(version?: ConvertVersion | string) {
101-
const converted = await this.svcs.converterSvc.convert(this.value, version as ConvertVersion);
100+
async convertSpec(version?: AsyncAPIConvertVersion | string) {
101+
const converted = await this.svcs.converterSvc.convert(this.value, version as AsyncAPIConvertVersion);
102102
this.updateState({ content: converted, updateModel: true });
103103
}
104104

0 commit comments

Comments
 (0)