File tree Expand file tree Collapse file tree 5 files changed +18
-14
lines changed
Expand file tree Collapse file tree 5 files changed +18
-14
lines changed Original file line number Diff line number Diff line change 2929 ],
3030 "dependencies" : {
3131 "canvas" : " ^2.10.2" ,
32- "jsdom" : " ^20 .0.3 " ,
32+ "jsdom" : " ^25 .0.1 " ,
3333 "phaser3spectorjs" :
" npm:[email protected] " 3434 },
3535 "devDependencies" : {
36- "@types/jsdom" : " ^20.0.1" ,
36+ "@tsconfig/node18" : " ^18.2.4" ,
37+ "@types/jsdom" : " ^21.1.7" ,
3738 "@types/node" : " ^16.4.0" ,
3839 "@yandeu/prettier-config" : " ^0.0.3" ,
3940 "axios" : " ^0.24.0" ,
4344 "nodemon" : " ^2.0.4" ,
4445 "npm-run-all" : " ^4.1.5" ,
4546 "phaser" : " ^3.60.0" ,
46- "typescript" : " ^4.3.5 "
47+ "typescript" : " ^5.7.2 "
4748 },
4849 "directories" : {
4950 "lib" : " lib"
5960 "funding" : {
6061 "url" : " https://github.com/sponsors/yandeu"
6162 }
62- }
63+ }
Original file line number Diff line number Diff line change 1+ global . screen = {
2+ // @ts -expect-error
3+ orientation : {
4+ addEventListener : ( ) => { }
5+ }
6+ }
Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ import path from 'path'
22import fs from 'fs'
33
44class FakeXMLHttpRequest {
5- public url : string
5+ public url ! : string
66 public status = 200
77 public response : any
8- public responseText : string
8+ public responseText : string | undefined
99
1010 public open ( _type : string , url : string ) {
1111 this . url = path . resolve ( __dirname , url )
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ declare global {
55import Canvas from 'canvas'
66import jsdom from 'jsdom'
77import FakeXMLHttpRequest from './fakeXMLHttpRequest'
8+ import './fakeScreen'
89
910const { JSDOM } = jsdom
1011const dom = new JSDOM ( `<!DOCTYPE html><body></body>` )
Original file line number Diff line number Diff line change 11{
2+ "extends" : " @tsconfig/node18/tsconfig.json" ,
23 "compilerOptions" : {
3- "target" : " ES2015" ,
4- "module" : " CommonJS" ,
5-
64 "rootDir" : " ./src" ,
75 "outDir" : " ./lib" ,
86
7+ "lib" : [" es2023" , " dom" ],
8+
99 "sourceMap" : true ,
1010 "declaration" : true ,
11- "declarationMap" : true ,
12-
13- "esModuleInterop" : true ,
14- "strict" : true ,
15- "strictPropertyInitialization" : false
11+ "declarationMap" : true
1612 }
1713}
You can’t perform that action at this time.
0 commit comments