diff --git a/platform/cli/src/commands/listPlugins.js b/platform/cli/src/commands/listPlugins.js index 7903a7cfd..039f2ad48 100644 --- a/platform/cli/src/commands/listPlugins.js +++ b/platform/cli/src/commands/listPlugins.js @@ -1,5 +1,5 @@ import fs from 'fs'; -import { prettyPrint } from './utils/index'; +import { prettyPrint } from './utils/index.js'; import { colors } from './enums/index.js'; const listPlugins = async configPath => { diff --git a/platform/cli/src/commands/searchPlugins.js b/platform/cli/src/commands/searchPlugins.js index 2ab6492e8..ef5e3af53 100644 --- a/platform/cli/src/commands/searchPlugins.js +++ b/platform/cli/src/commands/searchPlugins.js @@ -1,6 +1,6 @@ import axios from 'axios'; -import { prettyPrint } from './utils/index'; +import { prettyPrint } from './utils/index.js'; import { keywords, colors, endPoints } from './enums/index.js'; async function searchRegistry(keyword) { diff --git a/platform/cli/src/commands/unlinkPackage.js b/platform/cli/src/commands/unlinkPackage.js index 2b9d3dcbd..8aaa9f871 100644 --- a/platform/cli/src/commands/unlinkPackage.js +++ b/platform/cli/src/commands/unlinkPackage.js @@ -1,7 +1,7 @@ import { execa } from 'execa'; import fs from 'fs'; import path from 'path'; -import { validateYarn, removeExtensionFromConfig, removeModeFromConfig } from './utils/index'; +import { validateYarn, removeExtensionFromConfig, removeModeFromConfig } from './utils/index.js'; const linkPackage = async (packageName, options, removeFromConfig) => { const { viewerDirectory } = options; diff --git a/platform/docs/docs/development/playwright-testing.md b/platform/docs/docs/development/playwright-testing.md index d55ec1198..679872399 100644 --- a/platform/docs/docs/development/playwright-testing.md +++ b/platform/docs/docs/development/playwright-testing.md @@ -15,7 +15,7 @@ If you would like to use a specific study, you can use the `studyInstanceUID` pr ```ts import { test } from '@playwright/test'; -import { visitStudy, checkForScreenshot, screenShotPaths } from './utils/index'; +import { visitStudy, checkForScreenshot, screenShotPaths } from './utils/index.js'; test.beforeEach(async ({ page }) => { const studyInstanceUID = '2.16.840.1.114362.1.11972228.22789312658.616067305.306.2'; @@ -52,7 +52,7 @@ import { visitStudy, checkForScreenshot, screenshotPath, -} from './utils/index'; +} from './utils/index.js'; test.beforeEach(async ({ page }) => { const studyInstanceUID = '2.16.840.1.114362.1.11972228.22789312658.616067305.306.2'; @@ -84,7 +84,7 @@ import { checkForScreenshot, screenShotPaths, simulateDrag, -} from './utils/index'; +} from './utils/index.js'; test.beforeEach(async ({ page }) => { const studyInstanceUID = '2.16.840.1.114362.1.11972228.22789312658.616067305.306.2'; diff --git a/tests/MPR.spec.ts b/tests/MPR.spec.ts index 4119ccaa0..66c711ada 100644 --- a/tests/MPR.spec.ts +++ b/tests/MPR.spec.ts @@ -1,5 +1,5 @@ import { test } from '@playwright/test'; -import { visitStudy, checkForScreenshot, screenShotPaths } from './utils/index'; +import { visitStudy, checkForScreenshot, screenShotPaths } from './utils/index.js'; test.beforeEach(async ({ page }) => { const studyInstanceUID = '1.3.6.1.4.1.14519.5.2.1.1706.8374.643249677828306008300337414785';