Converted tests to typescript. (#6181)

* Converted tests to typescript.

* Run all tests.

* Fixed tests.

* Removed cypress from every installation.

* Use cache for libreoffice.

* Fixed cypress install.

* Fixed cypress install.
This commit is contained in:
SamTV12345 2024-02-22 18:31:17 +01:00 committed by GitHub
parent 4bd27a1c79
commit 546ede284c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
45 changed files with 912 additions and 734 deletions

View file

@ -81,9 +81,11 @@
"devDependencies": {
"@types/async": "^3.2.24",
"@types/express": "^4.17.21",
"@types/mocha": "^10.0.6",
"@types/node": "^20.11.19",
"@types/sinon": "^17.0.3",
"@types/supertest": "^6.0.2",
"@types/underscore": "^1.11.15",
"cypress": "^13.6.4",
"eslint": "^8.56.0",
"eslint-config-etherpad": "^3.0.22",
"etherpad-cli-client": "^3.0.1",
@ -109,7 +111,7 @@
},
"scripts": {
"lint": "eslint .",
"test": "mocha --import=tsx --timeout 120000 --recursive tests/backend/specs ../node_modules/ep_*/static/tests/backend/specs",
"test": "mocha --import=tsx --timeout 120000 --recursive tests/backend/specs/**.ts tests/backend/specs/**/*.ts ../node_modules/ep_*/static/tests/backend/specs",
"test-container": "mocha --import=tsx --timeout 5000 tests/container/specs/api",
"dev": "node --import tsx node/server.ts",
"prod": "node --import tsx node/server.ts",