diff --git a/index.js b/index.js index 31349f2..cc9c64f 100644 --- a/index.js +++ b/index.js @@ -4,9 +4,9 @@ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ -import BrowserPageOpener from './lib/browser' -import JsdomPageOpener from './lib/jsdom' -import { OpenedPage } from './lib/types' +import BrowserPageOpener from './lib/browser.js' +import JsdomPageOpener from './lib/jsdom.js' +import { OpenedPage } from './lib/types.js' /** * Enables tests to open an application's own page URLs both in the browser and diff --git a/lib/browser.js b/lib/browser.js index 2ed2557..86a9226 100644 --- a/lib/browser.js +++ b/lib/browser.js @@ -6,7 +6,7 @@ */ import { createCoverageMap } from 'istanbul-lib-coverage' -import { OpenedPage } from './types' +import { OpenedPage } from './types.js' /** * Returns the window and document from a browser-opened HTML file. diff --git a/lib/jsdom.js b/lib/jsdom.js index d5a2ca5..b503967 100644 --- a/lib/jsdom.js +++ b/lib/jsdom.js @@ -5,7 +5,7 @@ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ -import { OpenedPage } from './types' +import { OpenedPage } from './types.js' /** * Returns window and document objects from a jsdom-parsed HTML file. diff --git a/package.json b/package.json index 4b57092..5ebb767 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "test-page-opener", - "version": "1.0.1", + "version": "1.0.2", "description": "Enables an application's tests to open its own page URLs both in the browser and in Node.js using jsdom", "main": "index.js", "scripts": {