added silent option to run tests and added a missing properties in the MockText (#1967)

This commit is contained in:
Greenlamp2 2024-06-08 22:24:57 +02:00 committed by GitHub
parent c301a54039
commit dd40c8caa2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,7 @@
"test": "vitest run",
"test:cov": "vitest run --coverage",
"test:watch": "vitest watch --coverage",
"test:silent": "vitest run --silent",
"eslint": "eslint --fix .",
"eslint-ci": "eslint .",
"docs": "typedoc"

View File

@ -7,9 +7,11 @@ export default class MockText {
private scene;
private textureManager;
public list = [];
public style;
constructor(textureManager, x, y, content, styleOptions) {
this.scene = textureManager.scene;
this.textureManager = textureManager;
this.style = {};
// Phaser.GameObjects.TextStyle.prototype.setStyle = () => null;
// Phaser.GameObjects.Text.prototype.updateText = () => null;
// Phaser.Textures.TextureManager.prototype.addCanvas = () => {};