Skip to content

Commit 92bb745

Browse files
authored
fix(jsdom): sendTo( console ) has been changed to forwardTo (#22)
- `sendTo` has changed to `fowardTo` in [JSDOM 27](https://github.com/jsdom/jsdom/releases/tag/27.0.0) - add JSDOM tests to the jQuery workflow
1 parent 56bb3c2 commit 92bb745

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/jquery.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ jobs:
3737
working-directory: test/jquery
3838
run: npm install -D ../../
3939

40+
- name: Run jQuery tests in JSDOM
41+
working-directory: test/jquery
42+
run: npm run test:jsdom -- -v
43+
4044
- name: Run jQuery tests
4145
working-directory: test/jquery
4246
run: npm run test:browser -- -v

jsdom/createWindow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const { JSDOM } = jsdom;
44

55
export default async function createWindow( { reportId, url, verbose } ) {
66
const virtualConsole = new jsdom.VirtualConsole();
7-
virtualConsole.sendTo( console );
7+
virtualConsole.forwardTo( console );
88
virtualConsole.removeAllListeners( "clear" );
99

1010
const { window } = await JSDOM.fromURL( url, {

0 commit comments

Comments
 (0)