diff --git a/ponyracer/package.json b/ponyracer/package.json index 65114bb0e..c42378a2c 100644 --- a/ponyracer/package.json +++ b/ponyracer/package.json @@ -23,8 +23,8 @@ "zone.js": "~0.11.4" }, "devDependencies": { - "@angular-devkit/build-angular": "^15.0.0-next.1", - "@angular/cli": "~15.0.0-next.1", + "@angular-devkit/build-angular": "^15.0.0-next.2", + "@angular/cli": "~15.0.0-next.2", "@angular/compiler-cli": "^15.0.0-next.0", "@types/jasmine": "~4.3.0", "jasmine-core": "~4.4.0", diff --git a/ponyracer/src/test.ts b/ponyracer/src/test.ts index c04c87607..cac5aa3ea 100644 --- a/ponyracer/src/test.ts +++ b/ponyracer/src/test.ts @@ -15,10 +15,10 @@ declare const require: { }; // First, initialize the Angular testing environment. -getTestBed().initTestEnvironment( - BrowserDynamicTestingModule, - platformBrowserDynamicTesting(), -); +getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting(), { + errorOnUnknownElements: true, + errorOnUnknownProperties: true +}); // Then we find all the tests. const context = require.context('./', true, /\.spec\.ts$/); diff --git a/ponyracer/tsconfig.json b/ponyracer/tsconfig.json index ff06eae10..ed966d43a 100644 --- a/ponyracer/tsconfig.json +++ b/ponyracer/tsconfig.json @@ -16,10 +16,11 @@ "experimentalDecorators": true, "moduleResolution": "node", "importHelpers": true, - "target": "es2020", - "module": "es2020", + "target": "ES2022", + "module": "ES2022", + "useDefineForClassFields": false, "lib": [ - "es2020", + "ES2022", "dom" ] },