Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump to v1.0.2, add .js extension to local imports #20

Merged
merged 1 commit into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion lib/jsdom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down