diff --git a/package.json b/package.json index 1bcc480d4b..d4a93ff07f 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,7 @@ "devDependencies": { "@crustio/crust-pin": "^1.0.0", "@pinata/sdk": "^2.1.0", - "@polkadot/dev": "^0.72.1", + "@polkadot/dev": "^0.72.9", "@types/chart.js": "^2.9.37", "@types/file-saver": "^2.0.5", "@types/react-beautiful-dnd": "^13.1.3", diff --git a/packages/apps-config/src/api/index.spec.ts b/packages/apps-config/src/api/index.spec.ts index c3a887d9cc..ff85d6682c 100644 --- a/packages/apps-config/src/api/index.spec.ts +++ b/packages/apps-config/src/api/index.spec.ts @@ -1,6 +1,8 @@ // Copyright 2017-2023 @polkadot/apps-config authors & contributors // SPDX-License-Identifier: Apache-2.0 +/// + import type { OverrideBundleDefinition } from '@polkadot/types/types'; import spec from './spec/index.js'; diff --git a/packages/apps-config/src/api/typesBundle.spec.ts b/packages/apps-config/src/api/typesBundle.spec.ts index eabca8143f..0027809db3 100644 --- a/packages/apps-config/src/api/typesBundle.spec.ts +++ b/packages/apps-config/src/api/typesBundle.spec.ts @@ -1,6 +1,8 @@ // Copyright 2017-2023 @polkadot/apps-config authors & contributors // SPDX-License-Identifier: Apache-2.0 +/// + import fs from 'node:fs'; import { objectSpread } from '@polkadot/util'; diff --git a/packages/apps-config/src/ci/chainEndpoints.spec.ts b/packages/apps-config/src/ci/chainEndpoints.spec.ts index 8847f8db74..57335225f7 100644 --- a/packages/apps-config/src/ci/chainEndpoints.spec.ts +++ b/packages/apps-config/src/ci/chainEndpoints.spec.ts @@ -1,6 +1,8 @@ // Copyright 2017-2023 @polkadot/apps-config authors & contributors // SPDX-License-Identifier: Apache-2.0 +/// + import { assert, isString } from '@polkadot/util'; import { WebSocket } from '@polkadot/x-ws'; diff --git a/packages/apps-config/src/endpoints/index.spec.ts b/packages/apps-config/src/endpoints/index.spec.ts index 9d87749f6d..24e5ff588e 100644 --- a/packages/apps-config/src/endpoints/index.spec.ts +++ b/packages/apps-config/src/endpoints/index.spec.ts @@ -1,6 +1,8 @@ // Copyright 2017-2023 @polkadot/apps-config authors & contributors // SPDX-License-Identifier: Apache-2.0 +/// + import { strict as assert } from 'node:assert'; import { isNumber, isString } from '@polkadot/util'; diff --git a/packages/apps-electron/package.json b/packages/apps-electron/package.json index 5829c9bbc9..28d60a8288 100644 --- a/packages/apps-electron/package.json +++ b/packages/apps-electron/package.json @@ -15,7 +15,7 @@ "sideEffects": false, "version": "0.124.2-161-x", "dependencies": { - "@polkadot/dev": "^0.72.1", + "@polkadot/dev": "^0.72.9", "@polkadot/react-components": "^0.124.2-161-x", "electron-log": "^5.0.0-beta.16", "electron-updater": "^5.3.0" diff --git a/packages/apps-electron/src/main/account-store.spec.ts b/packages/apps-electron/src/main/account-store.spec.ts index 63982df844..6743d4643d 100644 --- a/packages/apps-electron/src/main/account-store.spec.ts +++ b/packages/apps-electron/src/main/account-store.spec.ts @@ -1,6 +1,8 @@ // Copyright 2017-2023 @polkadot/apps authors & contributors // SPDX-License-Identifier: Apache-2.0 +/// + import type { KeyringJson } from '@polkadot/ui-keyring/types'; import * as tmp from 'tmp'; diff --git a/packages/apps-electron/src/renderer/remote-electron-store.spec.ts b/packages/apps-electron/src/renderer/remote-electron-store.spec.ts index 976e876820..ba12f3f342 100644 --- a/packages/apps-electron/src/renderer/remote-electron-store.spec.ts +++ b/packages/apps-electron/src/renderer/remote-electron-store.spec.ts @@ -1,6 +1,8 @@ // Copyright 2017-2023 @polkadot/apps authors & contributors // SPDX-License-Identifier: Apache-2.0 +/// + import type { KeyringJson } from '@polkadot/ui-keyring/types'; import { RemoteElectronStore } from './remote-electron-store.js'; diff --git a/packages/apps/package.json b/packages/apps/package.json index 930b1ffc42..fa74b49bcf 100644 --- a/packages/apps/package.json +++ b/packages/apps/package.json @@ -18,7 +18,7 @@ "dependencies": { "@polkadot/apps-config": "^0.124.2-161-x", "@polkadot/apps-routing": "^0.124.2-161-x", - "@polkadot/dev": "^0.72.1", + "@polkadot/dev": "^0.72.9", "@polkadot/react-api": "^0.124.2-161-x", "@polkadot/react-components": "^0.124.2-161-x", "@polkadot/react-hooks": "^0.124.2-161-x", diff --git a/packages/page-accounts/src/Accounts/index.spec.ts b/packages/page-accounts/src/Accounts/index.spec.ts index b298995eca..d9d937c67e 100644 --- a/packages/page-accounts/src/Accounts/index.spec.ts +++ b/packages/page-accounts/src/Accounts/index.spec.ts @@ -1,6 +1,8 @@ // Copyright 2017-2023 @polkadot/page-accounts authors & contributors // SPDX-License-Identifier: Apache-2.0 +/// + import { fireEvent, screen, within } from '@testing-library/react'; import { POLKADOT_GENESIS } from '@polkadot/apps-config'; diff --git a/packages/page-accounts/src/CreateAccount.slow.spec.tsx b/packages/page-accounts/src/CreateAccount.slow.spec.tsx index 0e704a891e..c1295e7c85 100644 --- a/packages/page-accounts/src/CreateAccount.slow.spec.tsx +++ b/packages/page-accounts/src/CreateAccount.slow.spec.tsx @@ -1,6 +1,8 @@ // Copyright 2017-2023 @polkadot/app-accounts authors & contributors // SPDX-License-Identifier: Apache-2.0 +/// + import '@polkadot/react-components/i18n'; import { fireEvent, render, waitForElementToBeRemoved } from '@testing-library/react'; diff --git a/packages/page-accounts/src/Sidebar/Sidebar.spec.tsx b/packages/page-accounts/src/Sidebar/Sidebar.spec.tsx index 6ec649444c..e7650c5e1c 100644 --- a/packages/page-accounts/src/Sidebar/Sidebar.spec.tsx +++ b/packages/page-accounts/src/Sidebar/Sidebar.spec.tsx @@ -1,6 +1,8 @@ // Copyright 2017-2023 @polkadot/page-accounts authors & contributors // SPDX-License-Identifier: Apache-2.0 +/// + import { fireEvent, screen, waitFor, within } from '@testing-library/react'; import i18next from '@polkadot/react-components/i18n'; diff --git a/packages/page-accounts/src/modals/Create.spec.tsx b/packages/page-accounts/src/modals/Create.spec.tsx index 287bcef063..95e7d30d46 100644 --- a/packages/page-accounts/src/modals/Create.spec.tsx +++ b/packages/page-accounts/src/modals/Create.spec.tsx @@ -1,6 +1,8 @@ // Copyright 2017-2023 @polkadot/page-accounts authors & contributors // SPDX-License-Identifier: Apache-2.0 +/// + import { fireEvent, screen, waitForElementToBeRemoved } from '@testing-library/react'; import i18next from '@polkadot/react-components/i18n'; diff --git a/packages/page-addresses/src/Contacts/index.spec.ts b/packages/page-addresses/src/Contacts/index.spec.ts index cdbc0b8fdb..acef3159ad 100644 --- a/packages/page-addresses/src/Contacts/index.spec.ts +++ b/packages/page-addresses/src/Contacts/index.spec.ts @@ -1,6 +1,8 @@ -// Copyright 2017-2023 @polkadot/page-accounts authors & contributors +// Copyright 2017-2023 @polkadot/page-addresses authors & contributors // SPDX-License-Identifier: Apache-2.0 +/// + import { screen } from '@testing-library/react'; import i18next from '@polkadot/react-components/i18n'; diff --git a/packages/page-alliance/src/util.spec.ts b/packages/page-alliance/src/util.spec.ts index 646110b25f..b1b3adca80 100644 --- a/packages/page-alliance/src/util.spec.ts +++ b/packages/page-alliance/src/util.spec.ts @@ -1,6 +1,8 @@ // Copyright 2017-2023 @polkadot/app-alliance authors & contributors // SPDX-License-Identifier: Apache-2.0 +/// + import { Metadata, TypeRegistry } from '@polkadot/types'; import substrate from '@polkadot/types-support/metadata/static-substrate'; diff --git a/packages/page-bounties/src/Bounties.slow.spec.tsx b/packages/page-bounties/src/Bounties.slow.spec.tsx index 76e0efd1ec..feea1134e5 100644 --- a/packages/page-bounties/src/Bounties.slow.spec.tsx +++ b/packages/page-bounties/src/Bounties.slow.spec.tsx @@ -1,6 +1,8 @@ // Copyright 2017-2023 @polkadot/app-bounties authors & contributors // SPDX-License-Identifier: Apache-2.0 +/// + import '@polkadot/react-components/i18n'; import { render } from '@testing-library/react'; diff --git a/packages/page-bounties/src/Bounties.spec.ts b/packages/page-bounties/src/Bounties.spec.ts index 747e8ab2a7..87faad3070 100644 --- a/packages/page-bounties/src/Bounties.spec.ts +++ b/packages/page-bounties/src/Bounties.spec.ts @@ -1,6 +1,8 @@ // Copyright 2017-2023 @polkadot/app-bounties authors & contributors // SPDX-License-Identifier: Apache-2.0 +/// + import type { SubmittableExtrinsic } from '@polkadot/api/types'; import type { DeriveCollectiveProposal } from '@polkadot/api-derive/types'; import type { BountyIndex, BountyStatus } from '@polkadot/types/interfaces'; diff --git a/packages/page-bounties/src/helpers/calculateBountyBond.spec.ts b/packages/page-bounties/src/helpers/calculateBountyBond.spec.ts index 53d9a33a4a..640836841f 100644 --- a/packages/page-bounties/src/helpers/calculateBountyBond.spec.ts +++ b/packages/page-bounties/src/helpers/calculateBountyBond.spec.ts @@ -1,6 +1,8 @@ // Copyright 2017-2023 @polkadot/app-bounties authors & contributors // SPDX-License-Identifier: Apache-2.0 +/// + import { TypeRegistry } from '@polkadot/types/create'; import { BN } from '@polkadot/util'; diff --git a/packages/page-bounties/src/helpers/determineUnassignCuratorAction.spec.ts b/packages/page-bounties/src/helpers/determineUnassignCuratorAction.spec.ts index 2637a03d49..92d0e9238f 100644 --- a/packages/page-bounties/src/helpers/determineUnassignCuratorAction.spec.ts +++ b/packages/page-bounties/src/helpers/determineUnassignCuratorAction.spec.ts @@ -1,6 +1,8 @@ // Copyright 2017-2023 @polkadot/app-bounties authors & contributors // SPDX-License-Identifier: Apache-2.0 +/// + import { createAugmentedApi } from '@polkadot/test-support/api/index'; import { BountyFactory } from '@polkadot/test-support/creation/bounties/bountyFactory'; import { BN } from '@polkadot/util'; diff --git a/packages/page-bounties/src/helpers/getBountyStatus.spec.ts b/packages/page-bounties/src/helpers/getBountyStatus.spec.ts index 1d079420e8..4aafa2b1d0 100644 --- a/packages/page-bounties/src/helpers/getBountyStatus.spec.ts +++ b/packages/page-bounties/src/helpers/getBountyStatus.spec.ts @@ -1,6 +1,8 @@ // Copyright 2017-2023 @polkadot/app-bounties authors & contributors // SPDX-License-Identifier: Apache-2.0 +/// + import { TypeRegistry } from '@polkadot/types/create'; import { getBountyStatus } from './getBountyStatus.js'; diff --git a/packages/page-bounties/src/helpers/isClaimable.spec.ts b/packages/page-bounties/src/helpers/isClaimable.spec.ts index b0f4298d8a..b776e4ee1c 100644 --- a/packages/page-bounties/src/helpers/isClaimable.spec.ts +++ b/packages/page-bounties/src/helpers/isClaimable.spec.ts @@ -1,6 +1,8 @@ // Copyright 2017-2023 @polkadot/app-bounties authors & contributors // SPDX-License-Identifier: Apache-2.0 +/// + import { TypeRegistry } from '@polkadot/types/create'; import { BN } from '@polkadot/util'; diff --git a/packages/page-bounties/src/helpers/truncateTitle.spec.ts b/packages/page-bounties/src/helpers/truncateTitle.spec.ts index c1eac74a9f..45dd23adca 100644 --- a/packages/page-bounties/src/helpers/truncateTitle.spec.ts +++ b/packages/page-bounties/src/helpers/truncateTitle.spec.ts @@ -1,6 +1,8 @@ // Copyright 2017-2023 @polkadot/app-bounties authors & contributors // SPDX-License-Identifier: Apache-2.0 +/// + import { truncateTitle } from './stringHelpers.js'; describe('Truncate title', () => { diff --git a/packages/page-claims/src/util.spec.ts b/packages/page-claims/src/util.spec.ts index 29118573a9..86be68417d 100644 --- a/packages/page-claims/src/util.spec.ts +++ b/packages/page-claims/src/util.spec.ts @@ -1,6 +1,8 @@ // Copyright 2017-2023 @polkadot/react-components authors & contributors // SPDX-License-Identifier: Apache-2.0 +/// + import { hexToU8a } from '@polkadot/util'; import { publicToAddr, recoverFromJSON } from './util.js'; diff --git a/packages/page-democracy/src/util.spec.ts b/packages/page-democracy/src/util.spec.ts index df5fe63b52..c06665bec1 100644 --- a/packages/page-democracy/src/util.spec.ts +++ b/packages/page-democracy/src/util.spec.ts @@ -1,6 +1,8 @@ // Copyright 2017-2023 @polkadot/app-democracy authors & contributors // SPDX-License-Identifier: Apache-2.0 +/// + import { calcPassing } from '@polkadot/api-derive/democracy/util'; import { TypeRegistry } from '@polkadot/types/create'; import { BN } from '@polkadot/util'; diff --git a/packages/page-referenda/src/util.spec.ts b/packages/page-referenda/src/util.spec.ts index 97b4a8b0be..8c9bac60a8 100644 --- a/packages/page-referenda/src/util.spec.ts +++ b/packages/page-referenda/src/util.spec.ts @@ -1,6 +1,8 @@ // Copyright 2017-2023 @polkadot/app-referenda authors & contributors // SPDX-License-Identifier: Apache-2.0 +/// + import type { PalletReferendaCurve } from '@polkadot/types/lookup'; import type { BN } from '@polkadot/util'; diff --git a/packages/react-api/src/light.spec.ts b/packages/react-api/src/light.spec.ts index f44872460a..07366a9e2d 100644 --- a/packages/react-api/src/light.spec.ts +++ b/packages/react-api/src/light.spec.ts @@ -1,6 +1,8 @@ // Copyright 2017-2023 @polkadot/react-api authors & contributors // SPDX-License-Identifier: Apache-2.0 +/// + import fs from 'fs'; import path from 'path'; import process from 'process'; diff --git a/packages/react-components/src/Modal/Modal.spec.tsx b/packages/react-components/src/Modal/Modal.spec.tsx index e685d02b3f..c192e9e42c 100644 --- a/packages/react-components/src/Modal/Modal.spec.tsx +++ b/packages/react-components/src/Modal/Modal.spec.tsx @@ -1,6 +1,8 @@ // Copyright 2017-2023 @polkadot/app-bounties authors & contributors // SPDX-License-Identifier: Apache-2.0 +/// + import { fireEvent, render, screen, waitFor } from '@testing-library/react'; import React, { Suspense } from 'react'; import { ThemeProvider } from 'styled-components'; diff --git a/packages/react-components/src/Popup/Popup.spec.tsx b/packages/react-components/src/Popup/Popup.spec.tsx index a29a596694..8cc45b683b 100644 --- a/packages/react-components/src/Popup/Popup.spec.tsx +++ b/packages/react-components/src/Popup/Popup.spec.tsx @@ -1,6 +1,8 @@ // Copyright 2017-2023 @polkadot/react-components authors & contributors // SPDX-License-Identifier: Apache-2.0 +/// + import { fireEvent, render, screen, waitFor } from '@testing-library/react'; import React, { Suspense } from 'react'; import { ThemeProvider } from 'styled-components'; diff --git a/packages/react-hooks/src/useMemoValue.spec.ts b/packages/react-hooks/src/useMemoValue.spec.ts index e15b12722e..eb8a62f028 100644 --- a/packages/react-hooks/src/useMemoValue.spec.ts +++ b/packages/react-hooks/src/useMemoValue.spec.ts @@ -1,6 +1,8 @@ // Copyright 2017-2023 @polkadot/react-components authors & contributors // SPDX-License-Identifier: Apache-2.0 +/// + import { stringify } from '@polkadot/util'; import { getMemoValue, isDifferent } from './useMemoValue.js'; diff --git a/yarn.lock b/yarn.lock index 5b0df1f76a..ad0e2358bf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1722,7 +1722,7 @@ __metadata: version: 0.0.0-use.local resolution: "@polkadot/apps-electron@workspace:packages/apps-electron" dependencies: - "@polkadot/dev": ^0.72.1 + "@polkadot/dev": ^0.72.9 "@polkadot/react-components": ^0.124.2-161-x "@types/react-dom": ^18.0.11 "@types/tmp": ^0.2.3 @@ -1748,7 +1748,7 @@ __metadata: dependencies: "@polkadot/apps-config": ^0.124.2-161-x "@polkadot/apps-routing": ^0.124.2-161-x - "@polkadot/dev": ^0.72.1 + "@polkadot/dev": ^0.72.9 "@polkadot/react-api": ^0.124.2-161-x "@polkadot/react-components": ^0.124.2-161-x "@polkadot/react-hooks": ^0.124.2-161-x @@ -1776,32 +1776,34 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/dev-test@npm:^0.72.1": - version: 0.72.1 - resolution: "@polkadot/dev-test@npm:0.72.1" +"@polkadot/dev-test@npm:^0.72.9": + version: 0.72.9 + resolution: "@polkadot/dev-test@npm:0.72.9" dependencies: + jsdom: ^21.1.1 tslib: ^2.5.0 - checksum: ff0fbb8c082f9bdee3e5708287337cdc2f2c2ade92bdcc8ff5910a2d764c40b044e363de92e4079173927c2b15f4af9137e50e9f07b944d51c3fd3764dca84d2 + checksum: 8bbd4d5417cdc6ed1ca65af5bc8ec5ff6b26f172e02392cf627efc5093a49e9b6cb58f534fed9c8a997d07d69f1173b382f80210ff0bd4cfb8cbc9306e78180d languageName: node linkType: hard -"@polkadot/dev-ts@npm:^0.72.1": - version: 0.72.1 - resolution: "@polkadot/dev-ts@npm:0.72.1" +"@polkadot/dev-ts@npm:^0.72.9": + version: 0.72.9 + resolution: "@polkadot/dev-ts@npm:0.72.9" dependencies: + json5: ^2.2.3 tslib: ^2.5.0 - typescript: ^4.9.5 - checksum: 89d716117904072309fea9662c9e2f8bd0cb06becc2909b613a342141fc32f8ea64ff43ee6c35f8d6b39cf5e4f568cad449d41b491eec5602fd5b3aa58033e97 + typescript: ^5.0.2 + checksum: 40756eb32e7e72bd16a1d009ac9e11a0fe513df696ff90552af2ac2cea81d60b084015300d39e85e3006678533779ac03b174623f39f745a1b767cf08167ee49 languageName: node linkType: hard -"@polkadot/dev@npm:^0.72.1": - version: 0.72.1 - resolution: "@polkadot/dev@npm:0.72.1" +"@polkadot/dev@npm:^0.72.9": + version: 0.72.9 + resolution: "@polkadot/dev@npm:0.72.9" dependencies: "@eslint/js": ^8.36.0 - "@polkadot/dev-test": ^0.72.1 - "@polkadot/dev-ts": ^0.72.1 + "@polkadot/dev-test": ^0.72.9 + "@polkadot/dev-ts": ^0.72.9 "@rollup/plugin-alias": ^4.0.3 "@rollup/plugin-commonjs": ^24.0.1 "@rollup/plugin-dynamic-import-vars": ^2.0.3 @@ -1827,14 +1829,13 @@ __metadata: eslint-plugin-sort-destructure-keys: ^1.5.0 gh-pages: ^5.0.0 gh-release: ^7.0.2 - jsdom: ^21.1.1 madge: ^6.0.0 rollup: ^3.19.1 rollup-plugin-cleanup: ^3.2.1 tap-parser: ^12.0.1 tslib: ^2.5.0 - typescript: ^4.9.5 - webpack: ^5.76.1 + typescript: ^5.0.2 + webpack: ^5.76.2 webpack-cli: ^5.0.1 webpack-dev-server: ^4.12.0 webpack-merge: ^5.8.0 @@ -1864,7 +1865,7 @@ __metadata: polkadot-exec-rollup: scripts/polkadot-exec-rollup.mjs polkadot-exec-tsc: scripts/polkadot-exec-tsc.mjs polkadot-exec-webpack: scripts/polkadot-exec-webpack.mjs - checksum: 55a396d13dc032d8f77c41e2e3857266e364bad99567bed9d209c0f6563052925624326c36a771cbf32ccd6b315039fc318a54da2b932dbbe57034089c798422 + checksum: da6e188058e31d8eb11e8547a4e75ae391b6620ce102f9c640c3acf70173c0d8b9f1e5ee0028858e37600575500d753436b5fd583493a14bedabb27f258f692d languageName: node linkType: hard @@ -11359,7 +11360,7 @@ fsevents@~2.3.2: languageName: node linkType: hard -"json5@npm:^2.2.0, json5@npm:^2.2.2": +"json5@npm:^2.2.0, json5@npm:^2.2.2, json5@npm:^2.2.3": version: 2.2.3 resolution: "json5@npm:2.2.3" bin: @@ -13714,7 +13715,7 @@ fsevents@~2.3.2: dependencies: "@crustio/crust-pin": ^1.0.0 "@pinata/sdk": ^2.1.0 - "@polkadot/dev": ^0.72.1 + "@polkadot/dev": ^0.72.9 "@types/chart.js": ^2.9.37 "@types/file-saver": ^2.0.5 "@types/react-beautiful-dnd": ^13.1.3 @@ -18144,9 +18145,9 @@ fsevents@~2.3.2: languageName: node linkType: hard -"webpack@npm:^5.76.1": - version: 5.76.1 - resolution: "webpack@npm:5.76.1" +"webpack@npm:^5.76.2": + version: 5.76.2 + resolution: "webpack@npm:5.76.2" dependencies: "@types/eslint-scope": ^3.7.3 "@types/estree": ^0.0.51 @@ -18177,7 +18178,7 @@ fsevents@~2.3.2: optional: true bin: webpack: bin/webpack.js - checksum: b01fe0bc2dbca0e10d290ddb0bf81e807a031de48028176e2b21afd696b4d3f25ab9accdad888ef4a1f7c7f4d41f13d5bf2395b7653fdf3e5e3dafa54e56dab2 + checksum: 86db98299a175c371031449c26077e87b33acd8f45de7f7945ed4b9b37c8ca11bc5169af9c44743efccd4d55e08042a3aa3a3bc42aff831309a0821ffbcd395e languageName: node linkType: hard